Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

need to update links to JavaScript actions

New Here ,
Nov 18, 2019 Nov 18, 2019

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

 

TOPICS
Acrobat SDK and JavaScript , Windows
666
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 18, 2019 Nov 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.

Translate
Community Expert ,
Nov 18, 2019 Nov 18, 2019

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 18, 2019 Nov 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 18, 2019 Nov 18, 2019
LATEST

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 🙂

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines