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

Button to print specific pages

New Here ,
Mar 13, 2024 Mar 13, 2024

I've seen the previous thread but that option does not work. I know where to find and set-up the action but I cannot enter a "formula" to state the specific range or pages; I only have the option to print and then manual enter the page numbers. I'd like the button to just print the pages need for that part of the form. I don't see an option to enter the "formula." I'm using Acrobat Pro (Adobe for Enterprise).

Deanna36053937t76r_0-1710342343228.pngexpand image

 

TOPICS
How to , PDF forms
828
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
Community Expert ,
Mar 13, 2024 Mar 13, 2024

You can't execute the menu, that has the same functionality as using the print menu. You need to code this.

ABAMBO | Hard- and Software Engineer | Photographer
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
Community Expert ,
Mar 13, 2024 Mar 13, 2024

You can print specific pages using this code:

 

// Print pages 1-5, 11, 21-26
var pp = this.getPrintParams();
pp.interactive = pp.constants.interactionLevel.automatic;
pp.printRange = [[0, 4], [10, 10], [20, 25]];
this.print(pp);

 

(notice the page numbers are zero-based in the code)

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
Community Expert ,
Mar 13, 2024 Mar 13, 2024
LATEST

You must set the Print Page Range in the Document Properties: Advanced: Print Dialog Presets

 

Capture_2403132351.pngexpand image


Acrobate du PDF, InDesigner et Photoshopographe
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