Epson TM-T20II-i ePOS-Print XML Users Manual - Page 44
Print Document Creation, Element List p.61
![]() |
View all Epson TM-T20II-i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 44 highlights
Print Document Creation Create a print document using elements in the epos-print root element. For details on elements, refer to Element List (p.61). Refer to the following program for print document creation. TITLE function createDocument() { //Start print document creation. var request = ''; //Create a print document request += ''; request += ''; request += 'Hello, World! '; request += ''; //End print document creation. request += ''; } Create a print document 44
![](/manual_guide/products/epson-p60ii-eposprint-xml-user-s-manual-744bcec/44.png)
44
Print Document Creation
Create a print document using elements in the epos-print root element. For details on elements, refer to
Element List (p.61)
.
Refer to the following program for print document creation.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>TITLE</title>
<script type="text/javascript">
function createDocument() {
//Start print document creation.
var request = '<epos-print xmlns="http://www.epson-pos.com/schemas/2011/03/epos-print">';
//Create a print document
request += '<text lang="en" smooth="true"/>';
request += '<text font="font_a"/>';
request += '<text width="3" height="3">Hello, World! </text>';
request += '<cut type="feed"/>';
//End print document creation.
request += '</epos-print>';
}
</script>
</head>
<body>
</body>
</html>
Create a print document