These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Print Specific Pages out of PDF

ryanbeymer
Registered: Dec 15 2009
Posts: 3
Answered

I have dug around a little bit and not finding anything on this topic.

I would like to have additional pages in the pdf when it is electronic. When the user would print the pdf it would only print pages 2 and 4 of the 5 total.

Anyone have experience doing that? Is it possible? Kinda like the "Form Field - Visible but doesn't print" button on a page level.

My Product Information:
Acrobat Pro 9.2, Macintosh
try67
Expert
Registered: Oct 30 2008
Posts: 2398
You can create a button that runs a script that prints only those pages, but you can't prevent the user from printing the entire document using the built-in Print command.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

ryanbeymer
Registered: Dec 15 2009
Posts: 3
Do you have a sample script for that?
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
There is one print method for the 'doc' object to print and you can either use some simple parameters or set the properties of the 'PrintParams' object.
this.print(false, this.pageNum, this.pageNum);// or print silentlythis.print({bUI: false, nStart: this.pageNum, nEnd: this.pageNum, bSilent: true, bShrinkToFit: true});

// print current pagevar pp = this.getPrintParams();pp.firstPage = this.pageNum;pp.lastPage = this.pageNum;this.print(pp);

JavaScript numbers the pages starting at zero and there are some security restrictions explained in the Acrobat JS API, [url=http://www.adobe.com/devnet/acrobat/javascript.php]Acrobat JavaScript].

George Kaiser