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

Specific page printing

The X
Registered: Mar 27 2011
Posts: 24

I have this document containing many pages and users using Reader to view it. The user has to decide which pages he needs to print.
 
I imagined crating a check box at the top of each pages so the user could turn "on" every pages he needs and then creating a print button that would check the value of those checkboxes, printing ones that are "on".
 
I see two possibilities, either creating a button that inserts the name (or number) of each checked pages in a print script or creating a button that creates a bunch of "one-page print scripts".
 
I need you guys for this one, I'm totally lost with this. Is it even possible to create such a script?

My Product Information:
Acrobat Pro 10.0, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Yes, it is possible.

You will need to use the this.print() method, to which you can specify the page range to be printed (see the documentation for more info.)
The best way is to create a set of consistently named check-boxes (like Print1 on page 1, Print2 on page 2, etc.), and then write a button MouseUp script that loops over these boxes and prints each page where the corresponding check-box is ticked.

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

The X
Registered: Mar 27 2011
Posts: 24
Perfect. Now, would that print as one print job or separate print jobs because I'm affraid two users could get all tangled up.

Also, would the users still be prompted with choosing its printer, paper size, etc, just as usual?
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Like I said, you should check the documentation of this method. You will see that it takes a parameter that specifies whether the printer dialog is presented or not (called bUI).
If you do it the way I described each page will be printed in a separate print job. It's possible to tweak it so that each continuous page range (for example 1-20 or 13-17) is printed as a single job, but that requires quite a bit more scripting knowledge, and would still mean that if the user chooses pages 1, 3, 5, 8 and 9 you will have 4 separate print jobs (1, 3, 5, and 8-9).

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

try67
Expert
Registered: Oct 30 2008
Posts: 2398

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