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

links in pdf

lee82
Registered: Mar 2 2010
Posts: 5

not sure where to post this so i apologise if its in the wrong spot.

I have an htm page with links to pdf documents.

In the pdf i have web page links. Now if i open document from harddrive and it opens in adobe reader 9, the links open in new browser - as it should, but when i click on the htm link and it opens the pdf page in browser, the links in the pdf opens in the same window.

I cannot uncheck the option in preferences to open in same window, or the open pdf in browser option in the internet preferences - it gives problems with opening other pdf's.

is there a way - maybe javascript - to specify to open link in blank window?

Any help will be apreciated!

Lee

My Product Information:
Acrobat Pro 8.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes, you can open an HTML page with the "app.launchURL()" function, and you can open it in a new browser window. Look up the details in the Acrobat JavaScript Reference (in the signature block below).

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

lee82
Registered: Mar 2 2010
Posts: 5
Thank you,

i used the following code and it works perfectly in internet explorer!

app.launchURL("site address", true);

However if i open the pdf in firefox, it opens the link in an explorer new window instead of a firefox new window?

Any advice?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Hmm, I think what's happening is that Acrobat is dumping the URL to the system, and the system is deciding which browser to use. Try setting FirFox to be the default browser.

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