Opening a link in a PDF document in a new window | MyThinkPond

Adobe Acrobat

Open Link In PDF In New Window

Sometimes you like to link out to other URL’s or other PDF’s from within a PDF document. And you will notice that this replaces the existing HTML frame (if you had served the original PDF from a website) or window with the new document making it hard to navigate. In these cases, you would prefer to open the link in the PDF onto it’s own new window.

Well here how you do it…

So within Acrobat Professional (not Acrobat Reader), you will have options to add a URL or link. Instead, you can add a “Javascript” code as the action item on a link. And enter the following as the code that you use: [sourcecode language=“jscript”]

app.launchURL(“", true);

[/sourcecode] where the a “true” in the second attribute tells Acrobat reader to open the link in a new window and a “false” will open it up in the existing window.

To learn more about the Javascript API supported in the Acrobat Reader try this link:

Or this link: Acrobat Developer Center

Happy Coding!

Venkatt Guhesan avatar
About Venkatt Guhesan
Enterprise Software Architect currently working at DataDirect Networks developing a highly scalable monitoring solution called DDN Insight. My passions include all things Open Source including Linux (CentOS, Red Hat, Gentoo, Open Stack, Docker & Ubuntu), embedded ARM processors and microcontrollers (Arduino, UDOO, Cubieboard, BeagleBoard, OnionIO, TI's Zigbee). Coming from an Electrical and Computer Engineering background, working in developing and designing enterprise - distributed, highly scalable software requires a unique set of software skills with a good understanding of the hardware. This makes his work challenging and interesting. In his free time, he spends his time with his family and two children. He also enjoys researching on topics including - world ancient history and yoga. Visit the 'About' section for more details.
comments powered by Disqus