These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Embedding a script to intercept document closing event

gsanders
Registered: Mar 1 2007
Posts: 4

Is there a way to create a batch sequence that will embed a JS that will be triggered whenever the document is closed?

My Product Information:
Acrobat Pro 7.0.8, Windows
tedpadova
ExpertTeam
Registered: Dec 31 2005
Posts: 848
Are you sure you want to write a batch sequence to handle this? A lot depends on what you want the script to do. Perhaps a better solution would be to use a Document Action and run the script when the document closes. This, of course, would require adding the Document Action to each PDF file. If you want to post process files with a batch sequence is there something that is needed to have the file open, then run the script when the file closes?

It might be helpful if you could give us a little more information detailing what you want the script to do and the reason the file needs to be opened before running the sctipt.

ted

The author of numerous books on Acrobat, Photoshop, Illustrator and the Adobe Creative Suite, and an international speaker on Adobe Acrobat, Ted Padova is a well-known PDF guru.

gsanders
Registered: Mar 1 2007
Posts: 4
Hi Ted,

We need to be able to do this automatically. I currently use a plugin to execute several custom batch sequences (also generated automatically outside of Acrobat) I had hoped to be able to add another batch sequence to be executed at the same time that would then embed a simple reminder script that would fire when the document is subsequently opened and closed by an operator. We're a short run book printer and deal with hundreds of pdfs so adding the document action manually isn't really an attractive option.
I've seen some information that kind of looks applicable that involves using fdf but I'm very new to JS and the fdf format didn't really make sense to me. I couldn't find any good "entry level "explanation of the format of the fdf files either
Thanks for your help