Skip to main content
Participant
November 18, 2019
Answered

need to update links to JavaScript actions

  • November 18, 2019
  • 2 replies
  • 745 views

Hello, I'm needing help with how to perform an action on a PDF where it will change the action to open a web link to run a JavaScript to use the url bit, put app.launchURL(" infront of it and then ",true); after it.

I think the code would be something like

for each link in document

   read in URL

   Store URL

   delete open a web link

   create run a JavaScript

   make the JavaScript = app.launchURL("URL",true);

display message saying ta dah!!

I'm not sure where to start with the scripting as I can't find a page that is helping to give an introduction. I'm okay with VBA but like I say not sure where to start with Adobe, any help would be much appreciated

Thank you

 

This topic has been closed for replies.
Correct answer try67

I've developed a (paid-for) stand-alone tool that does exactly that. You can find it here:

http://try67.blogspot.com/2011/07/convert-all-links-in-pdf-to-open-in-new.html

 

Just to clarify, you can't do it using a script in Acrobat. It requires a stand-alone tool, or maybe a plugin.

2 replies

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
November 18, 2019

I've developed a (paid-for) stand-alone tool that does exactly that. You can find it here:

http://try67.blogspot.com/2011/07/convert-all-links-in-pdf-to-open-in-new.html

 

Just to clarify, you can't do it using a script in Acrobat. It requires a stand-alone tool, or maybe a plugin.

Participant
November 18, 2019

thanks so much for getting back to me. It would explain why I couldn't find examples of how to do this sort of stuff 🙂

 

I'll take a look at the stand alone converter to resolve it thanks

 

thanks again 🙂

Bernd Alheit
Community Expert
Community Expert
November 18, 2019

This is possible when you create a plugin written in C/C++.