Any way to run an Acrobat script from outside of Acrobat?

Explorer ,
Mar 21, 2019

Copy link to clipboard

Copied

Good evening, is there any way to access, and run a Javascript program from outside of Acrobat? Let's say that there is an external program that wants to run a document automatically, is there any way to have an external program run an Acrobat program at all?

Adobe Community Professional
Correct answer by George_Johnson | Adobe Community Professional

You don't really run Acrobat JavaScript code outside of Acrobat. With IAC, you can use the Forms API, which isn't the same as Acrobat JavaScript. There is the ExecuteThisScript IAC method (Acrobat DC SDK Documentation​), which is what I'd suggest you use. The Acrobat JavaScript code that it executes can be in Folder-level JavaScripts or document-level JavaScripts within whatever document is active.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

417

Likes

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

Any way to run an Acrobat script from outside of Acrobat?

Explorer ,
Mar 21, 2019

Copy link to clipboard

Copied

Good evening, is there any way to access, and run a Javascript program from outside of Acrobat? Let's say that there is an external program that wants to run a document automatically, is there any way to have an external program run an Acrobat program at all?

Adobe Community Professional
Correct answer by George_Johnson | Adobe Community Professional

You don't really run Acrobat JavaScript code outside of Acrobat. With IAC, you can use the Forms API, which isn't the same as Acrobat JavaScript. There is the ExecuteThisScript IAC method (Acrobat DC SDK Documentation​), which is what I'd suggest you use. The Acrobat JavaScript code that it executes can be in Folder-level JavaScripts or document-level JavaScripts within whatever document is active.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

418

Likes

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
Mar 21, 2019 0
Most Valuable Participant ,
Mar 21, 2019

Copy link to clipboard

Copied

Acrobat supports IAC which can be used to execute scripts. For more details try the Acrobat SDK forum.

Likes

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
Reply
Loading...
Mar 21, 2019 0
Explorer ,
Mar 21, 2019

Copy link to clipboard

Copied

I will most certainly check it out sir, but I do have one last question:  Will we have to change anything within our scripts to accommodate for the IAC at all?  Like change this.getField to something else, and of the like?

Likes

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
Reply
Loading...
Mar 21, 2019 0
Most Valuable Participant ,
Mar 21, 2019

Copy link to clipboard

Copied

I don't think so, but I don't really use IAC so I can't say for sure.

Likes

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
Reply
Loading...
Mar 21, 2019 0
Adobe Community Professional ,
Mar 21, 2019

Copy link to clipboard

Copied

You don't really run Acrobat JavaScript code outside of Acrobat. With IAC, you can use the Forms API, which isn't the same as Acrobat JavaScript. There is the ExecuteThisScript IAC method (Acrobat DC SDK Documentation​), which is what I'd suggest you use. The Acrobat JavaScript code that it executes can be in Folder-level JavaScripts or document-level JavaScripts within whatever document is active.

Likes

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
Reply
Loading...
Mar 21, 2019 0