How to Make a PDF Print Button Automatically Select Double-Sided Printing
Question details
The user wants to configure a print button within a PDF form to automatically enforce double-sided (duplex) printing, simplifying the process for the end user.

- Product
- PDF Forms
- Device & OS
- not provided
- Scenario
- Creating an interactive PDF form with a designated print button that intends to enforce duplex printing for the user.
- Observed behavior
- Currently, users must manually select duplex settings in their printer dialog; the goal is to fully automate this selection via the PDF print button.
Ensure your printer hardware supports automatic double-sided (duplex) printing, and keep in mind that PDF commands cannot override strict local printer driver restrictions.
Configure Duplex Printing Defaults via Document Properties
The most reliable method to suggest double-sided printing across different devices is to set the default print settings within the PDF document properties.
While custom print buttons cannot guarantee printer behavior due to diverse driver limitations, setting the document-level duplex property provides a strong instruction to the system's default print dialog.
Open your PDF file in your advanced PDF editor and navigate to File > Properties.
Click on the Advanced tab within the Document Properties window to view reading options and print dialog presets.
Under the 'Print Dialog Presets' section, locate the 'DuplexMode' dropdown. Change this setting to 'Duplex Flip Long Edge' or 'Duplex Flip Short Edge' depending on your binding preference.
Click OK and save your PDF document. When users open the print dialog, these presets will automatically be recommended to their printer.

Use JavaScript PrintParams for Interactive Print Buttons
Advanced users can use JavaScript to pass duplex parameters directly to the print dialog via an interactive button.
Manage PDF Print Settings Seamlessly with WPS Office
WPS PDF provides a user-friendly and highly intuitive print interface. Whether you are dealing with complex interactive forms or simply need to print on both sides without writing complicated JavaScript, WPS Office handles it efficiently.
- 1. Open your PDF file: Launch WPS Office and open your interactive PDF document or form.
- 2. Access the Print Dialog: Press the keyboard shortcut Ctrl+P or click on the Print icon located in the upper toolbar.
- 3. Select Duplex Printing: In the Print Dialog, locate the 'Print on both sides' option and check the box. You can also specify if it flips on the long or short edge.
- 4. Confirm and Print: Select your target printer and click the Print button to initiate your double-sided print job.

Frequently Asked Questions
Can JavaScript force a printer to print double-sided?
No, JavaScript can request double-sided printing by passing specific parameters to the print dialog, but it cannot force the printer to do so if the local printer driver does not support or accept the command.
Why isn't my PDF printing double-sided even after setting document properties?
The physical printer must have a duplex unit installed. If the hardware lacks this capability or the driver overrides software presets, document properties or JavaScript commands will be ignored.
How do I manually enable double-sided printing for a single print job?
You can bypass button automation entirely by pressing Ctrl+P to open the system or app print dialog, and then manually checking the 'Print on both sides' or 'Duplex' option before clicking Print.




