top of page

ACRO PDF - Print Specific Pages

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

  1. Create a Button with an appropriate Name, such as Print (accessible foreground and background) with text: for example on display: "Print" .

  2. Open the properties of the button and provide appropriate Alt text, such as, "Print this page".

  3. In the Actions tab, select either Mouse Exit and select Java Script.

  4. 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


Commenting on this post isn't available anymore. Contact the site owner for more info.
The PC Tech logo with cross, magnifying glass, and pc

What Resources do you need?

Delivering actionable communication solutions to achieve business goals

bottom of page