Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print Selected Pages Using Action Button

Status
Not open for further replies.

babilv

IS-IT--Management
Aug 22, 2003
3
US
We have lazy people and I'd like to be able to accomodate them!

I need to add a print button action that will automatically print a few selected pages out of my document.

I have been able to create the action button which displays the print options box. I would like to avoid that altogether. Thanks
 
You need to use the following JavaScript:

this.print({bUI: false, nStart: 0, nEnd: 6, bSilent: false, bShrinkToFit: true, bPrintAsImage: false, bReverse: false, bAnnotations: false});

Put the relevant page numbers in the nStart: and nEnd bits. You might also want to change some of the other bits, too. The bSilent one (I think) is the one that gets it to print without showing the Print dialog.

Look at the JavaScript guide that comes with Acrobat for more info (it's found under the Help menu). (If you have Acrobat 6, though, it no longer ships with the JavaScript guide, so you have to download it from Adobe (I don't have the exact URL, I'm afraid).

Hope this helps!
 
Thanks Tasha,

I will try it and let you know if it worked.
 
Thanks again Tasha,

This worked perfectly!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top