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

Creating link to display popup

chrscote
Registered: Apr 5 2010
Posts: 5

I have an HTML page which contains an embedded PDF file. I have successfully created a "regular" link to another HTML page within my fileset. However, I would like to change this link such that the 2nd HTML page appears in a separate popup window. In Acrobat 8, I used the link tool to create a hotspot for my link. I then chose "Custom link" from the Link Action section. Then under the Actions tab, I chose "Run a JavaScript" and typed the following:

app.launchURL("../htmlPage1.htm", true);

I included the "../" because my graphics files are located in a folder named figs within the HTML folder.

The problem I have is that when I click this link, nothing happens. What am I doing wrong?

Chris Cote

My Product Information:
Acrobat Pro 8.1, Windows
daka630
Expert
Registered: Mar 1 2007
Posts: 1420
Have you tried using the full URL?

Be well...

Be well...

chrscote
Registered: Apr 5 2010
Posts: 5
I really can't use the full URL for a couple of reasons. This page isn't actually hosted on the web. These are just a bunch of HTML pages for a technical manual. The pages won't always be placed in the exact same spot.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
What are the baseURL property for the PDF? Acrobat uses this to resolve relative links. This may be your problem. I'm also not sure how the "..\" is interpreted. You might want to try constructing the absolute URI from the baseURL, or the documents URL or path property.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

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