Javascript scripting tooling
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/10753722) 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:
- Close the "Document Javascripts" Window
- Click on "Debugger" on the toolbar
- Select the script "test"
- Change the view to "Console" below
- In the console type in "test()" so that it executes
- Hit ctrl+enter
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?
