Skip to main content
logistics227043683
Known Participant
Mar 21, 2019 10:18 PM UTC
Answered

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

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?

This topic is closed to new replies. Start a new post to keep the conversation going.
George_JohnsonCorrect answer
Inspiring
Mar 22, 2019 4:07 AM UTC

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.

4 replies

George_JohnsonCorrect answer
Inspiring
Mar 22, 2019 4:07 AM UTC

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.

Translate
try67
Community Expert
Community Expert
Mar 21, 2019 10:28 PM UTC

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

Translate
logistics227043683
Known Participant
Mar 21, 2019 10:33 PM UTC

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?

Translate
try67
Community Expert
Community Expert
Mar 21, 2019 10:52 PM UTC

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

Translate