Copy link to clipboard
Copied
I'm looking to develop a Javascript function relating to this thread https://community.adobe.com/t5/acrobat/acrobat-javascript-extracting-footnotes-technique/m-p/1075372...) and I've spent a while trying to figure out how all the tooling works inside Acrobat.
When I click on the Javascript tool I'm presented with a toolbar with options such as Debug | Debugger | Document Javascripts etc. When I click on Document Javascripts I'm able to add one e.g.
function test()
{
return 1+1
}
and the only way I can figure out how to run it is:
This seems like an excessive amount of steps that must be repeated to develop a script. Is there a better way?
Further, I can't seem to see anywhere where I can save "global" scripts that I can re-use on multiple PDFs. Is this possible to do?
Copy link to clipboard
Copied
You can use folder-level scripts.
Or use a action in the Action Wizard.
Copy link to clipboard
Copied
NB restart Acrobat after any change to folder level scripts.
In your flow, why do you close the Javascript debugger? And, for testing, why not just type or paste the whole script?
Copy link to clipboard
Copied
To execute your function you can simply run this command from the Console:
test();