Set Printer Options for a PDF Form in Adobe Acrobat
Question details
Set up a PDF form so users can print it with predefined printer and page options.

- Product
- Adobe Acrobat PDF forms
- Device & OS
- not provided
- Scenario
- A form should print to a designated printer with a specific tray, paper size, paper type, color mode, and other settings without requiring users to select each option.
- Observed behavior
- The desired result is a convenient print action that applies supported settings, with printer-specific options handled by the operating system and printer driver.
Open the form in an Acrobat edition that can edit PDF form fields, and confirm that the designated printer and its driver are installed. Check the printer's available tray, paper, and color options in its driver settings.
Create an Acrobat form button with a print action
Use a form button and Acrobat JavaScript to apply supported document print parameters and start printing.
Acrobat's printParams object controls supported print options, but it cannot reliably override every tray, paper type, color, or other hardware setting. Availability also depends on the PDF viewer, security settings, operating system, and printer driver.
Open the PDF in Acrobat and choose Prepare a form. Add a button to the form and give it a label such as Print.
Open the button's Properties, select the Actions tab, and set the trigger to Mouse Up. Choose Run a JavaScript as the action and click Add.
In the JavaScript editor, enter: var pp = this.getPrintParams(); pp.firstPage = 0; pp.lastPage = 0; this.print(pp); This example prints the first page; page indexes start at zero. Adjust the range and consult Acrobat's PrintParams documentation for other supported properties.
Save the PDF, exit form editing, and click the Print button. Check the print dialog and printed output; use File > Print if the button or a required setting does not work.

Configure printer defaults for driver-specific options
Use printer preferences for settings that the PDF print action cannot reliably control.
Print PDF Forms and Work With Office Files in WPS Office
WPS Office is a free, lightweight alternative for working with PDFs and Office documents in a familiar interface. Open a PDF and use its print dialog to select available printer options; it does not replace Acrobat's form-button JavaScript configuration.

Frequently Asked Questions
Can a PDF form automatically select a specific printer tray?
Not reliably in every setup. Tray selection depends on the operating system and printer driver. Configure the tray in the designated printer's printing preferences and test the form on each intended device.
Can I print only certain pages from the form button?
Yes. In the button's Run a JavaScript action, set the firstPage and lastPage properties of the printParams object before calling this.print(pp). Page indexes start at zero.
Will the print button work in every PDF viewer?
No. PDF viewers differ in their support for Acrobat JavaScript and form actions. Test the saved form in the viewer users will use, and retain File > Print as a fallback.
Can the form print without showing a dialog?
Silent printing can be restricted by Acrobat security settings and the context in which the script runs. A button action alone does not guarantee that the print dialog will be bypassed.




