How to Set a Default Printer for an Acrobat PDF Form
Question details
The user wants to know if a PDF form can be configured to permanently save a preferred printer (such as an HP LaserJet) and specific print settings.

- Product
- Adobe Acrobat Pro XI
- Device & OS
- Windows 10
- Scenario
- Creating or modifying a PDF form where specific printing hardware and settings need to be standardized for users.
- Observed behavior
- Standard PDF files cannot natively force or permanently set a user's default system printer due to software security and environment restrictions.
Before proceeding, note that standard PDF forms cannot permanently override a user's local system printer due to built-in security protocols. You will need a PDF editor capable of adding interactive form buttons and basic JavaScript to implement workarounds.
Add a JavaScript Print Button to the PDF Form
Create a customized button inside the PDF form that invokes the print dialog, allowing you to streamline the printing step for end-users.
While you cannot lock the printer selection silently for general users, you can embed a button that automatically opens the Print dialog when clicked. This ensures users do not have to search for the print command in the application menus.
Open your PDF document in Acrobat Pro, navigate to the Tools menu, and select 'Prepare Form' to begin editing the interactive elements.
Select the 'Button' tool from the top toolbar and drag your cursor onto the document page to draw the button.
Right-click the newly created button, choose 'Properties', and navigate to the 'Actions' tab. From the 'Select Action' dropdown menu, choose 'Run a JavaScript' and click the 'Add' button.
In the JavaScript Editor window, enter the code: this.print({bUI: true, bSilent: false}); and click OK. This code prompts the standard print interface.
Close the Properties dialog, exit the form editing mode, and click your new button to ensure it correctly opens the print menu.

Use Folder-Level Trusted JavaScript for Silent Printing
Deploy a local trusted JavaScript file to bypass the print dialog and send the document directly to a designated printer.
Easily Manage and Print PDF Forms with WPS Office
While hardcoding a default printer into a PDF document is heavily restricted across all platforms, WPS Office offers a highly intuitive PDF editor where you can easily fill forms, customize your print settings, and manage documents seamlessly without complex scripting.
- 1. Download and Install: Download WPS Office for free from the official website and install it on your PC.
- 2. Open Your PDF Form: Launch WPS PDF and open your form document. You can safely fill out interactive fields directly within the application.
- 3. Access Print Settings: Click the 'Print' icon on the top toolbar or press Ctrl+P to quickly bring up the comprehensive print dialog.
- 4. Select Printer and Output: Choose your preferred local or network printer from the dropdown menu, adjust your page sizing, and click Print.

Frequently Asked Questions
Can I force a PDF to print without opening the print dialog box?
Generally, no. For security reasons, modern PDF viewers and web browsers prevent documents from silently printing without user consent to prevent spam or malicious activity. Bypassing this requires installing advanced, trusted local JavaScript configurations on the specific computer.
Why doesn't my PDF save the specific print settings I applied?
Print settings, such as paper size or the selected default printer (e.g., an HP LaserJet), are managed by your operating system's print spooler and your specific PDF viewer software's preferences. They are not permanently embedded within the individual PDF file structure itself.
Is it possible to lock a PDF form so it can only be printed and not edited?
Yes. You can restrict user editing while still allowing high-resolution printing by applying a permissions password to your PDF document. This is done through the 'Protect' or 'Security' tab of your PDF editing software.




