Epson TM-U220 ePOS-Print XML Users Manual - Page 49
To create a mode print document, Print image
View all Epson TM-U220 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 49 highlights
Chapter 3 Programming Guide To create a page mode print document: Create a graphic print document using the image element in the epos-print root element. Set the image size using an attribute of the image element. For graphics, specify raster graphic bit-image data using a base 64 encoded character string. Refer to the following program for print document creation. For the string "Hello World!", to create a print document based on the following settings: ❏ Page mode print area (in dots) Origin of horizontal axis: ❏ Page mode print positions (in dots) Horizontal print position: ❏ Font: ❏ Scale: ❏ Style: 100, origin of vertical axis: 50, width: 200, height: 100 0, vertical print position: 42 FontA x 2 (horizontal) and x 2 (vertical) Bold function createDocument() { //Start print document creation. var request = ''; //Create a print document // request += ''; // request += ''; // request += ''; // request += ''; request += ''; request += ''; request += ''; request += ''; // request += 'Hello,'; request += ''; request += 'World!'; // request += ''; // request += ''; //End print document creation. request += ''; } Print image 49