Copy link to clipboard
Copied
I'm using Run a Javascript to print pages 1 and 3 of a document using this code:
var x = this.getPrintParams();
x.printRange = [[0,0], [2,2]];
this.print(x);
It works, but it pops up the print dialog box first. I'm wondering if there is a way to bypass the print dialog box and directly print pages 1 and 3. Thanks.
Add this line before the print command:
x.interactive = pp.constants.interactionLevel.automatic;
Copy link to clipboard
Copied
Hi there
Hope you are doing well and thanks for reaching out.
The workflow you are trying to achieve is might be possible using JavaScript. For more information please check the help pages listed below:
https://acrobatusers.com/tutorials/javascript_console/
https://helpx.adobe.com/acrobat/using/applying-actions-scripts-pdfs.html
Hope it will help
Regards
Amal
Copy link to clipboard
Copied
Add this line before the print command:
x.interactive = pp.constants.interactionLevel.automatic;
Copy link to clipboard
Copied
Thank you!