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

Printing automatically range of pages from bookmarks

jwoody
Registered: Aug 28 2007
Posts: 2

I have a 350+ page document with 100+ bookmarks. I would like to be able to click on the bookmark and print only the pages that apply to that bookmark - like all pages until the next bookmark. It looks like I might be able to accomplish something similar using packages, but I really want to have everything in one file. I've tried setting up another bookmark or button with the print action, but don't see a way to specify which pages to print. Most of the end users will not remember or understand that they need to put in a range and will end up printing the whole document. I'm a beginning user with Acrobat Pro 8.0 and I'm not a programmer, but could probably do some basic, simple scripts with examples to refer to.

My Product Information:
Acrobat Pro 8.0999999999999996447286321199499070644378662109375, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Fortunately there is a simple JavaScript you can use to print a page range

this.print({nStart:3, nEnd:6});

This script prints pages 4 to 7. Page numbers in JavaScript start at zero.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

schen42
Registered: Aug 20 2008
Posts: 4
Hello,

Is there a way to keep the print screen from automatically popping up when you click on the bookmark but instead have print ranges to automatically appear when they click on the print icon?


Thanks,

Susan