Epson TM-T20II-i ePOS-Print XML Users Manual - Page 47
To create a mode print document
View all Epson TM-T20II-i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 47 highlights
Chapter 3 Programming Guide (XML Print Service) 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: 100, origin of vertical axis: 50, width: 200, height: 100 ❏ Page mode print positions (in dots) Horizontal print position: 0, vertical print position: 42 ❏ Font: FontA ❏ Scale: x 2 (horizontal) and x 2 (vertical) ❏ Style: Bold function createDocument() { //Start print document creation. var request = ''; //Create a print document // request += ''; // 3 request += ''; // request += ''; // request += ''; request += ''; request += ''; request += ''; request += ''; // request += 'Hello,'; request += ''; request += 'World!'; // request += ''; // request += ''; //End print document creation. request += ''; } Print image 47