Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Batch Printing Page 2 onwards (Action)

New Here ,
Feb 23, 2017 Feb 23, 2017

Hello

I have this java script line that prints the 1st page only of all documents I select.

this.print(false, 0, 0);

Is there any way I can edit it to print from page 2 - end of document (ignoring page 1)

Many Thanks

Mick

TOPICS
Acrobat SDK and JavaScript
444
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 23, 2017 Feb 23, 2017

Take a look at the documentation for Doc.print(): Acrobat DC SDK Documentation - Doc.print()

As you can see, the two parameters that are set to 0 in your line of code determine the starting and end page. To print the second page, the first '0' in your code has to be changed to a 1, and to print to the end of the document, you need to specify the last page in the document as the third parameter. This can be done using the following line:

this.print(false, 1, this.numPages-1);

Translate
Community Expert ,
Feb 23, 2017 Feb 23, 2017
LATEST

Take a look at the documentation for Doc.print(): Acrobat DC SDK Documentation - Doc.print()

As you can see, the two parameters that are set to 0 in your line of code determine the starting and end page. To print the second page, the first '0' in your code has to be changed to a 1, and to print to the end of the document, you need to specify the last page in the document as the third parameter. This can be done using the following line:

this.print(false, 1, this.numPages-1);

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines