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

read web links in JavaScript

MMMM4_wang
Registered: Aug 5 2010
Posts: 5

There are hundreds or thousands of links in a group of PDF files need to be updated for their web URLs. The web URLs were created manually or by setAction(). Is there a way for me to read the contents of action of the link before I use setAction() to overwrite the old action? Thanks in advance.

n/a
My Product Information:
Acrobat 9.3.1, Macintosh
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Not with JavaScript.

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

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
As it happens, while this is a near impossible task to do with JavaScript, it's a pretty simple plug-in. At least looping through all the links and analyzing the Actions is pretty simple. You may want to contact a plug-in developer.

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