0
Executing document level javascript from folder level javascript
Explorer
,
/t5/acrobat-sdk-discussions/executing-document-level-javascript-from-folder-level-javascript/td-p/10193068
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/acrobat-sdk-discussions/executing-document-level-javascript-from-folder-level-javascript/m-p/10193069#M17787
Oct 22, 2018
Oct 22, 2018
Copy link to clipboard
Copied
You want execute a function?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
LATEST
/t5/acrobat-sdk-discussions/executing-document-level-javascript-from-folder-level-javascript/m-p/10193070#M17788
Oct 22, 2018
Oct 22, 2018
Copy link to clipboard
Copied
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.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

