Opening PDFs in New Browser Windows
Friday, October 27th, 2006Lori 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





