Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page mode #28

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open

Page mode #28

wants to merge 17 commits into from

Conversation

gtbX
Copy link

@gtbX gtbX commented May 25, 2023

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

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

@gtbX gtbX changed the title Feat/page Page mode May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant