Embedding Javascript in PDF to force links to open in new window -
we generating pdfs displayed on pages of our web app. pdfs displayed in iframes within page. if user clicks link inside 1 of pdfs on internet explorer acrobat installed, loads link in iframe, breaks user experience.
what accomplish embed javascript in pdf links clicked in pdf opened in new window. tried embedding following code in pdf:
/type /action /s /javascript /js (app.openinplace = false;)
the resulting pdfs continue open links in place. using utility functions pypdf2 embed javascript inside pdfs.
it occurred me might not possible open link pdf in new window within iframe.
Comments
Post a Comment