Copy link to clipboard
Copied
Hi,
I need a script to print out page 1-6 three times and page 7 one time. I have made a button with the following script:
this.print(true, 0, 6);
this.print(true, 0, 5);
this.print(true, 0, 5);
How can I make this into one code to avoid the print window (ctrl + P) to appear three times?
Jenny
Copy link to clipboard
Copied
Use this code:
var pp = this.getPrintParams();
pp.printRange = [[0,5], [0,5], [0,5], [6,6]];
this.print(pp);
Copy link to clipboard
Copied
Thank you so much once again!
I have one more question left (at least for now!!)
The user should preferably not see page 4 and 6, but I need them to be printed out. The users will print double sided, so I have added some blank pages to avoid mixing different papers. Do you know a code for hiding these blank pages?
Copy link to clipboard
Copied
Assuming the file is going to be used in the free Reader that's quite complicated to implement.
I would just add a non-printable, read-only text field on those pages saying they are intentionally left blank for printing purposes, or something like that.
Copy link to clipboard
Copied
Yes, they use free reader. That solution will work! Smart adding a field so there will be no misunderstandings. Thank you very much! You have been of great help.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now