Add margins to page and select the specific printer
I am new in JavaScript.
I try to combine two scripts in one script, but without results. It is not working.
And here is the code:
/* Crop*/
var rCrop = this.getPageBox("Crop",this.pageNum);
rCrop[0] -= 8.5; // Adjust Left Side
rCrop[1] += 5.7; // Adjust Top Side
rCrop[2] += 0; // Adjust Right Side
rCrop[3] -= 0; // Adjust Bottom Side
this.setPageBoxes("Crop",this.pageNum,this.pageNum,rCrop);
var pp = this.getPrintParams();
pp.interactive = pp.constants.interactionLevel.automatic;
pp.printerName = "Epson L805 Series";
This script should add margins to Left and Top Side of page, and select the specific printer.
What I 'm doing wrong?
