Avatar

Level 10

Duh... Jono is right and his solution would also work if the user printed from the Acrobat print menu item.

If you delete the button in the example and have the following in the prePrint event of the checkbox on each page (just change the page reference:

if (this.rawValue == 0) // not checked

{

     page1.presence = "hidden"; // the SOM reference will have to relate to each page reference

}

else

{

     page1.presence = "visible";

}

Then in the postPrint event you would have just a single line to make sure that the page is made visible again:

page1.presence = "visible";

Sorry about the mis-direction. Jono's solution is much simpler to implement. Just note you can't hide all pages, so that if none of the pages are ticked, then a single blank page will print.

Good luck,

Niall