Copy link to clipboard
Copied
Hi, Can't find a way to do this. In Adobe Acrobat Pro XI how do I insert (embed) a javascript (document javascript) using the Adobe Acrobat "Action Wizard" (batch processing). I also need to later change out this old javascript with a altered new javascript every month or so on over 300 PDFs. This javascript runs automatically when the person (the reader) opens the PDF. I myself do not want to run a javascript, I only want to batch process (insert) a javascript into 300 PDFs. I need to do this by batch process because manually doing this would be too time consuming. If anyone knows, would you please write out a step by step on how to setup a "Action" to do this. Thanks!
Copy link to clipboard
Copied
You can do it using a script. Have a look at the addScript method of the Document object.
With it you can add a doc-level script that will be executed when the file is opened.
Word of warning, though: That script will be executed the moment you add it, so you might want to devise some kind of condition to prevent that, like checking the date or using a global variable or something like that.
Copy link to clipboard
Copied
Wished I knew what you're talking about try67. I have some simple HTML
knowledge but I'm afraid my javascript skill is limited to cutting and
pasting existing scripts. If anyone else can walk me through exactly step
by step I'd appreciate it. Thanks try67.
Copy link to clipboard
Copied
Read the documentation of this method. You can use it to embed a script in a file, and if you use it in an Action it can be done for multiple files.