You are on page 1of 1

Set timer to auto close the PDF

I'd like to know is possible to create a script or action for "auto close the pdf" in time provided?
I'm using Adobe Acrobat Pro X1.

This can be done.


There is a timeout function which delays an action by a given time. You would have to determine when you
trigger it (document open; page open, whatever).
The code would look like this:
var bye = app.setTimeOut("this.closeDoc(true)",600000) ;
which closes the document after 10 minutos. The delay is entered in milliseconds.
Now, when you want to stop the timeout, you would use
app.clearTimeOut(bye) ;
Hope this can help.
Max Wyss.

http://www.adobe.com/devnet/acrobat/javascript.html
http://blogs.adobe.com/dmcmahon/2009/09/05/acrobatreader-how-to-close-apdf-automatically-through-javascript/
http://www.pdfill.com/document_javascript.html

You might also like