Opening PDFs in New Browser Windows
Lori DeFurio has a nice post on setting up URL links in PDFs to view PDF files with a number of different options such as jumping to a specific page, opening the Bookmarks panel, and more. Check out her blog post at: Linking to specific pages in a PDF.
What’s mentioned in Lori’s post has to do with appending the open parameter using the Open a web page action in Acrobat. If you want to open a PDF in a new browser window from a PDF viewed in a browser window, you need a little help using JavaScript.
Create a button field or link and in the Action tab, select Run a JavaScript from the Select Action pull-down menu. Click the Add button to open the JavaScript Editor and type the following code in the Editor window:
app.launchURL(”http://www.mycompany.com/pdfDocument.pdf”, true);
In the above code, replace www.mycompany.com with your URL. Replace pdfDocument.pdf with the name of the PDF you want to open. The true statement triggers opening the PDF in a new browser window.
ted
September 17th, 2007 at 7:10 pm
Thank you for this information. I worked on this for about 4 hours then came across your information. Thank you for explaining every detail of this—it sure helps those of us who are beginners and just learning.
Thanks,
Robin Miller
September 17th, 2007 at 9:33 pm
Hi Robin,
I’m pleased to know you found some help.
Don’t feel bad though, it sometimes takes me days to work out a problem. We’re all beginners at one level or another.
Best Regards,
ted