Link to home
Start Free TrialLog in
Avatar of jerrycsakanyjr
jerrycsakanyjr

asked on

Acrobat Javascript Question regarding firstPage

Hi I am trying to do an automatic print using printparams and i am sending 2 seperate jobs. The first job i want to print both pages of the 2 page pdf and the second job i want to print only the second page of the 2 pages which is being sent to a virtual tif printer. My problem is it keeps printing only the first page instead of just the second. Take a look at my code and see if you can decifer why.

var pp = this.getPrintParams();
pp.interactive = pp.constants.interactionLevel.automatic;
pp.firstPage = 1;
pp.lastPage = 2;
pp.printerName = "up-middle";
this.print(pp);

var pn = this.getPrintParams();
pn.firstPage = 2;
pn.lastPage = 2;
pn.interactive = pn.constants.interactionLevel.automatic;
pn.printerName = "Bankruptcy and Patriot";
this.print(pn);

ASKER CERTIFIED SOLUTION
Avatar of Karl Heinz Kremer
Karl Heinz Kremer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial