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

Executing document level javascript from folder level javascript

Explorer ,
Oct 22, 2018 Oct 22, 2018

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

TOPICS
Acrobat SDK and JavaScript , Windows
287
Translate
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

You want execute a function?

Translate
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
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.

Translate
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