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

print a specified range

inosent
Registered: Jun 13 2009
Posts: 10

i have a pdf doc

i need to print out only particular sections

pages 1-2, 4,7,9,12-33

that sort of thing

is there javascript to do this?

try67
Expert
Registered: Oct 30 2008
Posts: 2399
Yes. this.print() can be used for that. You just need to call it several times if you want to call multiple ranges (you specify a range with the nStard and nEnd parameters). Another option it to first extract the pages you want into a new file, print it, and then close it without saving.

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

inosent
Registered: Jun 13 2009
Posts: 10
are thee any code examples somewhere? thanks for the reply
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
There are examples in the [url=http://www.adobe.com/devnet/acrobat/javascript.php]Acrobat JavaScirpt Dcoumentation[/url]

[url=http://livedocs.adobe.com/acrobat_sdk/9/Acrobat9_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp.htm?href=JS_API_AcroJSPreface.87.1.php&accessible=true]Doc print[/url]

George Kaiser