Design and CSS styles
Version 6.x > Design and CSS styles > Display PDF with embed View modes: 
User avatar
Member
Member
Jeff Gow - 10/17/2012 2:13:41 PM
   
Display PDF with embed
Currently, we display our pdf files in an iframe. The issue with this is that if there are links in the pdf, when they are clicked, they open in the iframe instead of the window itself.

To combat this, I am trying to use the embed tag but I am having issues getting the document to show. When I try to get the file using <%# GetFileUrl() %> as the source, it will not display (red x). If I hardcode a document, then it displays and I get the expected functionality (links opened within the pdf are opening in the main window).

I use the same GetFileUrl() command in the iframe. Not sure what I am missing

User avatar
Member
Member
Jeff Gow - 10/17/2012 2:17:30 PM
   
RE:Display PDF with embed
This is probably in the wrong thread - going to post in portal engine as well.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 10/18/2012 12:35:10 AM
   
RE:Display PDF with embed
Hi,

I will post just a link to the correct thread

Best regards,
Juraj Ondrus