Print Selected PDF Sections in One Adobe Acrobat Dialog
Question details
Print the PDF sections selected by form check boxes in one operation instead of opening a separate dialog for each section.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- A PDF form has check boxes for sections whose pages are currently printed by separate JavaScript calls.
- Observed behavior
- Each selected section triggers its own this.print call and print dialog.
Confirm the page numbers for each section and check the check boxes' export values in the form field properties. Acrobat JavaScript uses zero-based page indexes, while the print dialog normally uses one-based page numbers.
Enter the selected page ranges in one Acrobat print dialog
Use this method to print noncontiguous sections in one job without changing the form script.
Check the form boxes you need and note their page ranges. In the supplied script, indexes 1–5, 6–8, and 9–15 correspond to physical pages 2–6, 7–9, and 10–16.
Choose File > Print in Acrobat. Under Pages to Print, select Pages.
Enter the selected ranges separated by commas. For example, enter 2-6,10-16 to print Sections 1 and 3. Check the print preview, especially if the PDF uses custom page labels.
Choose the printer and settings, then click Print to submit the selected ranges as one job.

Print contiguous selected sections with one form button call
Use this script when the selected sections form one continuous range; it alerts the user when the selection has a gap.
View and print PDF documents with WPS Office
WPS Office is a free, lightweight alternative for everyday document work. Its familiar interface and support for common Office formats make it easy to move between files, while its PDF tools let you view and print documents. It does not fix an Acrobat-specific form script.

Frequently Asked Questions
Why does the form open multiple print dialogs?
The button runs a separate this.print call for each checked section. Each call can open its own dialog.
How do I print Sections 1 and 3 without Section 2?
Choose File > Print, select Pages, and enter 2-6,10-16 for the page indexes shown in the supplied script. Check the preview if the PDF uses custom page labels.
Why are the script page numbers different from the print dialog numbers?
Acrobat JavaScript page indexes start at zero, so index 1 refers to the second physical page. Print dialogs normally start page numbering at one.
Can one start and end page print noncontiguous sections?
No. A single start and end range includes every page between them. Use the Pages field in File > Print for separate ranges, or verify whether your Acrobat version supports an appropriate scripted method.
What if a checked box is not detected by the script?
Open Prepare a form and check the field name and the check box's export value in its properties. Update the getField name or the comparison with 'Yes' to match the form.




