Skip to main content
5-Regular Member
January 5, 2020
Question

Pdf within a popup

  • January 5, 2020
  • 1 reply
  • 1855 views

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

1 reply

1-Visitor
January 6, 2020
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
 

 

agangaiah5-Regular MemberAuthor
5-Regular Member
January 7, 2020

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

1-Visitor
January 7, 2020

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.

 

🙂