Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Hello,
I am looking at the possibility of opening a pdf ( maybe within a Popup Widget ) within the experience.
The current option I have is to launch a pdf by clicking on a file Widget but the problem is that this will end up the opening the file in a separate window which is not desirable.
Look forward to your kind responses.
Avinash
Good afternoon agangaiah,
Try using a function:
$scope.open_PDF = function(){
window.open(<path to PDF file>);
}
With this you can create the button with the icon you want and insert the function call in the action click this button
Hi,
Thanks for the kind revert. But this will open up the pdf in a new window, right?
My requirement is to open the pdf within the view experience.
Avinash
hi agangaiah,
Exact!
With this function it opens another window as it uses some existing PDF reader on your device.
In case of opening for example a popup with PDF I do not know.
🙂