search all javascript in pdf

Engaged ,
Apr 07, 2018 Apr 07, 2018

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?

TOPICS
Acrobat SDK and JavaScript

Views

197

Likes

translate

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
community guidelines

correct answers 1 Correct Answer

Most Valuable Participant , Apr 07, 2018 Apr 07, 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.

Likes

translate

Translate

Translate
Most Valuable Participant ,
Apr 07, 2018 Apr 07, 2018

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.

Likes

translate

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
community guidelines
Engaged ,
Apr 14, 2018 Apr 14, 2018

Copy link to clipboard

Copied

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

Likes

translate

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
community guidelines
LEGEND ,
Apr 14, 2018 Apr 14, 2018

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.

Likes

translate

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
community guidelines