Skip to main content
MRahnemun
Inspiring
April 17, 2023
Answered

printing only first few pages i.e. 1-5

  • April 17, 2023
  • 1 reply
  • 1209 views

Hello,

If the number of pages of a document is more than 5, I want to print page 1-5 only... I want to do this via Action Wizard.using "executing JavaScript"... can anybody help me and show me an exaple please.  Print subcommand of Action Wizard does not allow, it only prints the whole document. .

Thanks. 

 

 

This topic has been closed for replies.
Correct answer bebarth

Hi,

Try this script in action wizzard:

if (this.numPages>5) this.print(false,0,4);
else this.print(false);

@+

1 reply

bebarth
bebarthCorrect answer
Community Expert
April 17, 2023

Hi,

Try this script in action wizzard:

if (this.numPages>5) this.print(false,0,4);
else this.print(false);

@+

MRahnemun
MRahnemunAuthor
Inspiring
October 24, 2023

thanks it worked like a charm.  Much more clear than the others.