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

A quick piece of advice about Links?

WoOkZZ
Registered: May 27 2011
Posts: 28
Answered

Can anyone help me here?
Basically I have this rather large PDF document that has 100's of links in it. these links are all named either [Regulation xxx] or [Rule xxx]all of them lead to the same website, so is there anyway I can select all of them & link them at once? or do I have to go through them all individually?
 
Cheers
 

Thanks

WoOkZZ

My Product Information:
Acrobat Pro 9.4.3, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
So, do these links exist, or what you mean is you have regular text that you want to convert to links?

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

UVSAR
Expert
Registered: Oct 29 2008
Posts: 1357
Accepted Answer
What do you mean by "has 100s of links in it"? Are the links just plain text at the moment, or true Link objects that you can click on?

It's possible to use scripting to search for all the instances of a certain WORD, and draw a link around it. See example 2 in the Acrobat JS documentation for the doc.addLink() method.To search for a phrase you have to chain together a series of getPageNthWord() commands, but the principle of searching all the words, getting their rect corners and drawing a link object is the same.
WoOkZZ
Registered: May 27 2011
Posts: 28
Oh Bl**DY Hell, I didn't expect the Spanish Inquisition... LOL

Basically they are just text at the moment, but I need to link them all or @ least 90% of them to the same interweb location. Just wondered if there was an easier way then just drawing a link box round each of them individually.

Cheers

Thanks

WoOkZZ

try67
Expert
Registered: Oct 30 2008
Posts: 2398
As mentioned, this requires quite a bit of scripting knowledge... Which is why I created this tool:
http://try67.blogspot.com/2009/06/acrobat-add-hyperlinks-to-text-based-on.php

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com