How to Batch-Set PDF Print Dialog Presets and Duplex Properties
Question details
The user wants to know if Acrobat JavaScript can batch-edit and permanently save print dialog preset values, such as duplex mode and page scaling, across multiple PDF files.

- Product
- Adobe Acrobat / General PDF
- Device & OS
- not provided
- Scenario
- Batch configuring PDF print parameters for multiple documents before sending them to the printer.
- Observed behavior
- Acrobat JavaScript provides getPrintParams() to retrieve parameters, but lacks a general setter method to permanently write and save duplex and scaling settings directly into multiple PDF files' properties.
Ensure you have your target physical printer installed and verify that it natively supports the advanced hardware features you are trying to automate, such as two-sided (duplex) printing.
Control Print Operations Using Acrobat JavaScript Print Parameters
Use the getPrintParams() and print() JavaScript methods to temporarily configure and execute print settings for an active document.
While Acrobat JavaScript cannot permanently write print dialog presets (like duplex mode) into a batch of PDF files via a general setter, you can script the active print session.
By retrieving the print parameters using getPrintParams(), you can adjust the settings for the current session and pass them into the print() method to execute the print job immediately.
Open your PDF editor, navigate to the Tools menu, and open the JavaScript debugging console.
Type 'var pp = this.getPrintParams();' to fetch the default print configuration.
Assign new values to the parameters you wish to change. For example, configure duplex printing by typing 'pp.DuplexType = pp.constants.duplexTypes.DuplexFlipShortEdge;'.
Run 'this.print(pp);' to print the document using the newly defined parameters.

Configure Operating System Printer Defaults for Batch Printing
Bypass PDF file limitations by setting the duplex and scaling properties at the operating system printer driver level.
Batch Print PDFs Easily with WPS Office
If scripting custom print configurations feels too complex, WPS Office offers an intuitive built-in Batch Print feature. You can easily select multiple PDF files, set uniform page scaling, orientation, and duplex settings directly from the user interface, and print them all at once.
- 1. Open WPS PDF: Launch WPS Office and open the PDF tab.
- 2. Access Batch Print: Click on the 'Menu' in the top-left corner, navigate to 'Print', and select the 'Batch Print' option.
- 3. Add Multiple PDFs: In the Batch Print dialog box, click 'Add Files' or drag and drop all the PDF documents you want to print.
- 4. Configure Universal Print Settings: On the right side of the panel, adjust your preferred duplex type, page scaling, and short-edge flipping settings.
- 5. Start Batch Printing: Click the 'Print' button to automatically process and print all added files using your unified preset configuration.

Frequently Asked Questions
Can I permanently save duplex print settings into a PDF file?
Generally, hardware-specific print settings like duplex printing are handled by the printer driver or OS. While you can configure 'Print Dialog Presets' within the Document Properties of advanced PDF editors to suggest page scaling and duplexing, the end user's physical printer and local settings can still override these preferences.
What is the getPrintParams() function used for in Acrobat JavaScript?
The getPrintParams() method retrieves a PrintParams object containing the current print settings. Developers use it to read and temporarily modify settings (like page handling and margins) to pass into the print() method for an active session. It does not permanently write those parameters into the PDF.
How do I force a PDF to open with specific page scaling for printing?
You can configure Print Dialog Presets to suggest scaling. In a compatible PDF editor, go to Document Properties (Ctrl+D), navigate to the Advanced tab, and under 'Print Dialog Presets', change the 'Page Scaling' option to your desired setting (e.g., Default, None). Save the PDF to embed this suggestion.




