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

need to update links to JavaScript actions

New Here ,
Nov 18, 2019 Nov 18, 2019

Copy link to clipboard

Copied

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

Views

370

Translate

Translate

Report

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.

Votes

Translate

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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 🙂

Votes

Translate

Translate

Report

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