oolio-group / xml-escpos-helper

Apache License 2.0
30 stars 13 forks source link

Page mode #28

Open gtbX opened 1 year ago

gtbX commented 1 year ago

Description

Implement support for page mode, via the XML element. XML attributes can adjust the page size and text orientation on the page.

Also added tests for new code via the jest framework.

Related Issues

Issue: #27

How Has This Been Tested

Unit tests were written for the new code, as well as manual testing with an Epson TM-L90 printer.

Types of changes

Checklist

Screenshots (if appropriate)

This XML template produced the attached printout

<?xml version="1.0" encoding="UTF-8"?>
<document>
  <page size="500:100" orientation="east">
    <text-line>foobar</text-line>
  </page>
  <paper-cut />
</document>

sideways