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

Button to print specific pages

New Here ,
Mar 13, 2024 Mar 13, 2024

Copy link to clipboard

Copied

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.png

 

TOPICS
How to , PDF forms

Views

577

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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)

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

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

 

Capture_2403132351.png

Votes

Translate

Translate

Report

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