ACRO PDF - Print Specific Pages
- The PC Tech
- Dec 20, 2025
- 1 min read
Although not commonly used with current Acrobat PDFs, you can set a button to print specific pages. For example, the PDF may have pages that belong to the customer and pages that are kept to the business.
Your Action Steps
~ Courtesy: Adobe Community (Thom Parker): https://community.adobe.com/questions-18/script-to-print-specific-pages-in-a-pdf-591052
Create a Button with an appropriate Name, such as Print (accessible foreground and background) with text: for example on display: "Print" .
Open the properties of the button and provide appropriate Alt text, such as, "Print this page".
In the Actions tab, select either Mouse Exit and select Java Script.
In the Java Script dialog box provide the following, adjusted for the page(s) you want to print; Note: do not include all of what is listed below - the various printRange.push instructions are to provide examples for you. As always, copy this script into Notepad and then copy from Notepad to the JavaScripting window to avoid any possible carry over of extraneous HTML code.
var pp = this.getPrintParams();
var printRange = [];
printRange.push([0,0]); // print page 1 only put in the push range desired
printRange.push([2,2]); // print page 3
printRange.push([4,4]); // print page 5
printRange.push([7,7]); // print page 8
pp.printRange = printRange;
this.print(pp);
Example: Print Page 1 Only
var pp = this.getPrintParams();
var printRange = [];
printRange.push([2,2]); // print page 1
pp.printRange = printRange;
this.print(pp);
Final Notes:
Depending on the printer type and/or security applied to the network, expect up to a 60 second delay for the printer dialog box to display.
Also, not include here is a "silent" print because it can require elevated user privileges which some organizations and individuals will block.




Comments