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

Open a web link

jjohnston
Registered: Aug 14 2008
Posts: 6

How do you set the Action of a link to "Open a web link" rather than "Run a JavaScript"?

I'm using the following to link words in a PDF document but I need it to set the action to "Open a web link".

function LinkWord(lPage, sWord, sLink)
{
var numWords = this.getPageNumWords(lPage);
for (var i=0; i

My Product Information:
Acrobat Pro 8.1, Windows
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
Try the app.launchURL method. To answer your question, you can't specify anything other than a JavaScript action. I agree that it would be nice to be able to specify some of the other standard actions, and create more than one action for a particular event.

George
jjohnston
Registered: Aug 14 2008
Posts: 6
I wish that would work. The application that I'm using theses PDF files with requires an "Open a web link" type of action and won't work with a JavaScript action. :(

Thanks for the suggestion though.

Jaime