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

Automating Print Dialog Presets

Woodstock72
Registered: Aug 2 2010
Posts: 1

We automatically insert our corporate logo as a new page to our pdf proofs using a batch sequence.
But manualy set our print dialog preset in Document Properties > Advanced > Print Page Range: 2, so page 1 (logo) will not print by default for the recipient of the pdf.
Is there a script that we can run during the batch processing to automatically set these document properties.

Thanks

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Unfortunately, many of the document properties that are set from the dialog cannot be set through either JavaScript or through any of the built-in batch commands. There are however a couple of solutions that are not too difficult.

1. Use a script in the batch process to perform the print. The JavaScript print function does have control over the page range and many of the other print parameters.
2. Write a plug-in and/or batch command to set these properties in the PDF. The print page range is a fairly easy change to make with a plug-in and this would give you a one click solution to modifying a PDF.


Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script