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

Executing document level javascript from folder level javascript

Explorer ,
Oct 22, 2018 Oct 22, 2018

Copy link to clipboard

Copied

Adobe Acrobat - how to Execute document level javascript from folder level javascript

TOPICS
Acrobat SDK and JavaScript , Windows

Views

221

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
Community Expert ,
Oct 22, 2018 Oct 22, 2018

Copy link to clipboard

Copied

You want execute a function?

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 ,
Oct 22, 2018 Oct 22, 2018

Copy link to clipboard

Copied

LATEST

If you want to invoke a function that's defined in a document-level JavaScript, and you have or can get a reference to the document that contains the code, you can invoke it like this in folder-level code:

// oDoc is a reference to the document that contains the "demo" function

oDoc.demo(arg1, arg2);

I included arg1 and arg2 just as an example.

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