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

Printing a range of Documents using Java script

goodoleboyo
Registered: Nov 5 2008
Posts: 1

I'm running the script below on buttons to print various print ranges within a large document. It for some reason has stopped working on Version 9 of reader. It shows the range in the print file but prints the entire document. I'm new to Java script and don't know what to do

// Print pages 1-4
print({nStart: 0, nEnd: 3});

My Product Information:
Acrobat Pro 9.0, Macintosh
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
Since you have not specified the parameter for use of the User Interface, the value for the "bUI" parameter assumes the default value. According to the Acrobat JS API Reference that value is "true" which means that the UI will be used and confirm the action.

Because of changes with version 7 security, non-interactive printing is restricted to console, batch or menu items unless the pdf is certified or a trusted function is created and used.

George Kaiser