Skip to main content
JaySprout
Inspiring
April 7, 2018
Answered

search all javascript in pdf

  • April 7, 2018
  • 2 replies
  • 1196 views

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?

This topic has been closed for replies.
Correct answer try67

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.

2 replies

JaySprout
JaySproutAuthor
Inspiring
April 14, 2018

I forgot about setting up the External Editor in Preferences --  thanks!

Inspiring
April 14, 2018

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.

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
April 7, 2018

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.