• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

599

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

Community Expert , 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.

Votes

Translate

Translate
Community Expert ,
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.

Votes

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!

Votes

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

LATEST

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.

Votes

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