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

Selective Printing

clintsjones
Registered: Jun 15 2007
Posts: 4

Hello,
I need to be able to open a PDF document with at least 100 pages, and on the front screen, have a list of check boxes (the number of check boxes will equal the number of pages) that can be labeled similar to "Mortgage Acceptance Form" or "Non-Disclosure Agreement." When the PDF document is opened, I would like to be able to check individual boxes, press a button, and have only those individual documents print on a printer. So, out of this 100 page document, sometimes I might print pages 3, 7, and 50, and other times I might print pages 5, 90, 92, 93, and 99.

I know this is possible in concept, but can it be done through Acrobat?

Thanks,
Clint

gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
You would have to check each button to see if it's value is not "Off" or equal to it's export value. You can then print that page or range of pages. The exact code would depend on your field names and export values. Assuming each field exports the page number to be printed, the following code can be added to a print button and repeated for each field with the "CheckBox#" sting being changed the check box field name to be tested.

if (this.getField("CheckBox#").value != "Off") {
this.print({bUI: false, nStart: this.getField("CheckBox#").value-1, nEnd: this.getField("CheckBox#").value-1, bSlient: true});
}

The code checks to see if the checkbox # has been selected and if so then does not show the User Interface, starts printing at the page number adjusted for zero based numbering ends printing at the page number adjusted for zero based numbering and does not show the print status window.

George Kaiser

clintsjones
Registered: Jun 15 2007
Posts: 4
Thank you for your prompt response. I'll be back with further questions if I have them. Thanks again.