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

Linking whole word to weblink

msstrend
Registered: Mar 15 2007
Posts: 53

Is it possible to link the whole word to a web page using Javascript?
For example the the text is like below
http://www.thefreedictionary.com/acrobat
http://www.google.co.in/

Please help.

My Product Information:
Acrobat Pro 7.0.9, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
What do you mean by "whole word"? Do you mean creating a link when a file is converted from another format, like word? Or creating a line in Acrobat using the Link Tool? The link tool creates a link over a rectangular area. It doesn't really have anything to do with whats underneith it.

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

msstrend
Registered: Mar 15 2007
Posts: 53
Actually i wanted to do a batch scripting in Javascript.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
So you want to search for a word and then place a link over it?

In fact, there is an example of this in the Acrobat JavaScript Reference. Look at the doc.addLink() function.

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