Skip to main content
logistics227043683
Known Participant
March 21, 2019
Answered

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

  • March 21, 2019
  • 2 replies
  • 1946 views

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 has been closed for replies.
Correct answer George_Johnson

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.

2 replies

George_JohnsonCorrect answer
Inspiring
March 22, 2019

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.

try67
Community Expert
Community Expert
March 21, 2019

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

logistics227043683
Known Participant
March 21, 2019

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?

try67
Community Expert
Community Expert
March 21, 2019

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