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?
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.
Copy link to clipboard
Copied
Acrobat supports IAC which can be used to execute scripts. For more details try the Acrobat SDK forum.
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?
Copy link to clipboard
Copied
I don't think so, but I don't really use IAC so I can't say for sure.
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.