Copy link to clipboard
Copied
Is there a way to search all of the javascript in a pdf? For example, if I get feedback in the console about a specific variable, how can I search for that variable?
Yes. Go to Tools - JavaScript - Edit All JavaScript. Either use an external editor (like Notepad) or copy and paste the code from there to such an application, and then search it.
However, do NOT edit that code directly. You could cause irreparable damage to the file. After you find the culprit go to that location (field script, doc-level script, etc.) and edit it there.
Copy link to clipboard
Copied
Yes. Go to Tools - JavaScript - Edit All JavaScript. Either use an external editor (like Notepad) or copy and paste the code from there to such an application, and then search it.
However, do NOT edit that code directly. You could cause irreparable damage to the file. After you find the culprit go to that location (field script, doc-level script, etc.) and edit it there.
Copy link to clipboard
Copied
I forgot about setting up the External Editor in Preferences -- thanks!
Copy link to clipboard
Copied
Using a robust text editor like TextPad, NotePad++, etc will have a find feature that could be used. Just do not modify the full file since there are lines of special text that are used by Acrobat to split the big file into the very specific actions.
Using an external text editor will also allow the editing of much larger action scripts since there is no memory space limitation as there is with the built-in editor.