lukevp / ESC-POS-.NET

Efficient, Easy to Use Thermal Printing & POS (Windows/Linux/OSX, WiFi/BT/USB/Ethernet)
MIT License
500 stars 161 forks source link

Added support for printing Aztec codes and setting left margin print position #217

Open jwikberg opened 1 year ago

jwikberg commented 1 year ago

This PR adds support for printing Aztec codes and for setting left margin for print position. Tested on an Epson TM-m30.

Based on Epson documentation.

Aztec Code: Set the number of mode types and data layers https://reference.epson-biz.com/modules/ref_escpos/index.php?content_id=161

Aztec Code: Set the size of the module https://reference.epson-biz.com/modules/ref_escpos/index.php?content_id=162

Aztec Code: Set the error correction level https://reference.epson-biz.com/modules/ref_escpos/index.php?content_id=163

Aztec Code: Store the data in the symbol storage area https://reference.epson-biz.com/modules/ref_escpos/index.php?content_id=164

Aztec Code: Print the symbol data in the symbol storage area https://reference.epson-biz.com/modules/ref_escpos/index.php?content_id=165

Aztec Code: Transmit the size information of the symbol data in the symbol storage area https://reference.epson-biz.com/modules/ref_escpos/index.php?content_id=166

Set left margin https://reference.epson-biz.com/modules/ref_escpos/index.php?content_id=60

lukevp commented 1 year ago

This is awesome! I'll give this a look soon and merge / release an update as soon as I get a moment.