These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Launch Document in New Window

callway59
Registered: Sep 5 2007
Posts: 4

I am having a heck of a time trying to get the app.launchURL to work correctly. I have followed all instructions given to me on this site and still having an issue. I need my users to click on a link within a .pdf document and allow that link to open in a new window, which is also a .pdf file. Most individuals will be using Adobe reader to execute this. anywhere from version 5 to version 8. The files that they will be launching are on a web server in a folder. Can anyone give me some direction on how to accomplish this? Please

My Product Information:
Acrobat Standard 8, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
If you search any of the standard PDF forums you'll find this question asked many times in many different ways. You'll also find a number of different solutions.

The "launchURL()" function specifically targets the browser so you need a browser, rather than Acrobat, oriented solution. One simple method is to use browser JavaScript, as opposed to a raw URL. try this.

app.launchURL("javascript:alert('hello World')");

This displays an alert box in your browser. If you know browser JavaScript, which I don't, then you can execute a script that will open a new window.

Good Luck

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script