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.interactionLe vel.automa tic;
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.interactionLe vel.automa tic;
pn.printerName = "Bankruptcy and Patriot";
this.print(pn);
var pp = this.getPrintParams();
pp.interactive = pp.constants.interactionLe
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.interactionLe
pn.printerName = "Bankruptcy and Patriot";
this.print(pn);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Any luck?