JSPrintManager allows you to specify the X, Y position/location, the Print Width & Height, as well as the Print Orientation values right into the File Name of the JPG/PNG image you want to print by using the following parameters:
||It's the X print position (left to right) in INCH unit
||It's the Y print position (top to bottom) in INCH unit
||It's the Print Width in INCH unit
||It's the Print Height in INCH unit
||It's the Print Orientation, 'P' for Postrait and 'L' for Landscape
So supposing you want to print a jpg image file available at this URL https://neodynamic.com/temp/penguins300dpi.jpg and you want to print it at X,Y 0.1in, in a 4.25in x 3.50in size, then the PrintFile instantiation should be written as follows:
var my_file = new JSPM.PrintFile("https://neodynamic.com/temp/penguins300dpi.jpg", JSPM.FileSourceType.URL, "MyPicture-PX=0.1-PY=0.1-PW=4.25-PH=3.50-PO=P.jpg", 1);
Try reproducing the following sample code locally...
Follow up these steps
Try JSPrintManager Online Demo!