PDF Printing Issues

How to Create PDF Buttons to Print Specific Selected Pages

Huma Ashraf ChHuma Ashraf Ch Oct 28, 2026 868 views

Question details

The user needs to add interactive buttons to a PDF form that allow users to print specific, sometimes noncontiguous, page combinations to an uneditable PDF format.

How to Create PDF Buttons to Print Specific Selected Pages
Product
PDF Editors
Device & OS
not provided
Scenario
Creating interactive PDF forms requiring users to quickly print specific combinations of filled pages.
Observed behavior
Requires a method to execute a print command for noncontiguous page ranges like 1, 2, and 4 via a single button click, taking software version limitations into account.
Before you start

Ensure you are using a modern PDF editing tool, as printing complex noncontiguous page combinations in a single button action typically requires newer software capabilities.

Solution 1Recommended

Configure Print Commands Based on Software Version Limits

Set up print actions for your interactive buttons while factoring in the limitations of older PDF readers for noncontiguous pages.

When setting up interactive print buttons in a PDF, the ability to print noncontiguous pages (like pages 1, 2, and 4) in a single command depends heavily on the user's PDF reader version.

Newer versions (such as Adobe Acrobat 11 or later) can handle complex page arrays in a single action. However, older software restricts you to continuous ranges per print command, meaning a complex array will either fail or require multiple individual actions.

1
Add a Button Form Field

Open your PDF document in an advanced PDF editor. Navigate to the Interactive Forms toolset and insert a new 'Button' field onto your document.

2
Assign a Print Action for Contiguous Pages

Right-click the button and open its properties. Under the Actions tab, choose 'Mouse Up' as the trigger. You can add a 'Execute a menu item' action to trigger standard printing, or use JavaScript to specify a range, such as printing pages 1 to 3.

3
Handle Noncontiguous Pages

If you are targeting newer software, you can write JavaScript to send an array of specific pages to the printer. For older versions (e.g., Acrobat 8), you must program multiple sequential print actions within the same button for each separate page block.

4
Ensure Virtual PDF Printer Capability

For the user to print the result to an 'uneditable PDF', ensure they have a 'Print to PDF' virtual printer installed on their system. The button's script can prompt the user to select this virtual printer from the print dialog.

Configure Print Commands Based on Software Version Limits
Verify User Software Capabilities: Always test your interactive buttons on the lowest PDF reader version your end-users might have. If you are distributing this form widely, asking users 'Do all customers have a specific version of Acrobat?' is a critical troubleshooting step.
Print PDF Pages with WPS Office

Easily Manage and Print Specific PDF Pages with WPS Office

Need to print noncontiguous pages or flatten a PDF form? WPS Office provides a lightweight, full-featured PDF editor. You can easily select specific page ranges and print to uneditable PDFs without complex scripting.

  1. 1. Open Your PDF: Launch WPS Office and open the interactive PDF form or document you wish to print.
  2. 2. Access the Print Menu: Click on 'Menu' at the top-left corner and select 'Print', or simply press Ctrl + P on your keyboard.
  3. 3. Select Page Range: Under the 'Pages to Print' section, choose 'Pages' and input your noncontiguous page numbers separated by commas (e.g., 1, 2, 4).
  4. 4. Print to PDF: Select 'WPS PDF' or 'Microsoft Print to PDF' as your printer to output the selected pages into a flattened, uneditable PDF file.
Free, lightweight, and fast PDF reader and editor.High compatibility with Adobe PDF forms and interactive documents.Easily print noncontiguous page ranges (e.g., 1, 2, 4) from a user-friendly print menu.
microsoft office alternative - wps office

Frequently Asked Questions

Can I print noncontiguous pages with older PDF readers using a button?

Older software typically only supports a single continuous page range per print command. For noncontiguous pages, you may need to program the button to issue multiple, separate print commands in succession, or advise the user to upgrade their software.

How do I save a fillable PDF form as an uneditable PDF?

You can use the 'Print to PDF' feature. Instead of printing to a physical printer, select a virtual PDF printer from your print dialog. This 'flattens' the document, embedding the form field data permanently into the page so it becomes uneditable.

Why does my PDF button only print the first few pages?

This usually happens because the underlying JavaScript command or action property is restricted to a continuous range (like pages 1-3). If you included page 4 but the software cannot process noncontiguous arrays, it will drop the latter part of the command.