0
Community Beginner
,
/t5/acrobat-sdk-discussions/code-for-printing-specific-page/td-p/11491925
Oct 08, 2020
Oct 08, 2020
Copy link to clipboard
Copied
Hello,
I am looking for a javascript code that can send a specific page to the printer.
The people who will use it all have acrobat reader DC
I have foud the code below but is doesn't work for printing the first page.
var pp = this.getPrintParams();
pp.printRange = [1];
this.print(pp);
TOPICS
Acrobat SDK and JavaScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
1 Correct answer
Community Expert
,
Oct 08, 2020
Oct 08, 2020
Use this:
var pp = this.getPrintParams();
pp.printRange = [[0,0]];
this.print(pp);
Community Expert
,
/t5/acrobat-sdk-discussions/code-for-printing-specific-page/m-p/11491950#M1359
Oct 08, 2020
Oct 08, 2020
Copy link to clipboard
Copied
Info: the number of the first page is 0.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/acrobat-sdk-discussions/code-for-printing-specific-page/m-p/11492010#M1360
Oct 08, 2020
Oct 08, 2020
Copy link to clipboard
Copied
Use this:
var pp = this.getPrintParams();
pp.printRange = [[0,0]];
this.print(pp);
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
marten0D44
AUTHOR
Community Beginner
,
LATEST
/t5/acrobat-sdk-discussions/code-for-printing-specific-page/m-p/11510668#M1361
Oct 15, 2020
Oct 15, 2020
Copy link to clipboard
Copied
Thank you very much.
It works !
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

