need to update links to JavaScript actions

New Here ,
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

 

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

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.

TOPICS
Acrobat SDK and JavaScript, How to, Windows

Views

92

Likes

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

need to update links to JavaScript actions

New Here ,
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

 

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

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.

TOPICS
Acrobat SDK and JavaScript, How to, Windows

Views

93

Likes

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
Nov 18, 2019 0
Adobe Community Professional ,
Nov 18, 2019

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
Nov 18, 2019 0
Most Valuable Participant ,
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.

Likes

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
Reply
Loading...
Nov 18, 2019 1
New Here ,
Nov 18, 2019

Copy link to clipboard

Copied

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 🙂

Likes

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
Reply
Loading...
Nov 18, 2019 0