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

[enhancement] transform Commands Buffer to generate SVG/Text #14

Open
arjun1194 opened this issue Aug 19, 2021 · 1 comment
Open

[enhancement] transform Commands Buffer to generate SVG/Text #14

arjun1194 opened this issue Aug 19, 2021 · 1 comment

Comments

@arjun1194
Copy link

Would it be possible to send back commands buffer to the library and reverse the process to generate an SVG ?
It would be awesome if we can save some paper (♻️)

I want to generate a Test case for the library and would like to send commands back to the library and see what the print would look like if i sent the commands to the printer

for E.G,
The general use-case is like this,
[Client] -> [receiptline] -> [Commands] -> [Printer]

I would like to achieve the following,
[Client] -> [receiptline] -> [Commands] -> [receiptline] -> [SVG / Text]

This would allow me to run test cases to check the client properly,
I also append some other commands present here that are not present in the receiptline library

@receiptline
Copy link
Owner

That's an interesting idea.
We could save paper by running the test cases without printing.

It would also be a test for receiptline itself.
It might be better to do the reverse conversion in a separate library.

Another solution would be a printer emulator, but I couldn't find this one.

Thank you!

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

No branches or pull requests

2 participants