Epson TM-T70-i ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 160
print method, print
View all Epson TM-T70-i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 160 highlights
print method Prints an image rendered in HTML5 Canvas. Converts the specified range in a RGBA full-color image of HTML5 Canvas into raster image data according to the settings of the halftone and brightness properties. One pixel in an image equals to one printer dot. When an image contains any transparent color, the background color of the image is assumed to be white. If an HTML5 Canvas image contains images downloaded from different domains, you cannot print the image. In this case, a security error occurs due to violation of the same origin policy of JavaScript. Syntax ❏ print(canvas); ❏ For acquiring the job ID print(canvas, printjobid); The syntax used to specify job IDs is only compatible with ePOS-Print Service Ver.4.1 or later. For details, refer to Specifying the Print Job ID from the Application (p.22). ❏ print(canvas, cut, mode); This syntax is compatible version. Parameter canvas : printjobid : cut : mode : ( Required parameter, Object type : canvas) Specify the HTML5 Canvas object to be printed. (Optional parameter, Object type : String) Specify the print job ID. (ePOS-Print Service Ver.4.1 or later versions) 1 to 30 alphanumeric characters, including underscores, hyphens and periods, may be used. ( Optional parameter, Object type : Boolean) Sets whether to cut paper. Setting true or 1 false or 0 undefined Description Cuts the paper after printing Does not cut the paper after printing Does not cut the paper after printing ( Optional parameter, Object type : String) Specifies the color mode. Setting MODE_MONO MODE_GRAY16 undefined Description Monochrome (two-tone) Multiple tones (16-tone) Monochrome (two-tone) 160