Closed ndr82 closed 4 hours ago
Same issue here, did you figure it out?
I got a better cut by adding a few vertical tabs before the cut call
.raw([0x1b, 0x64, 0x04]) // CTL_VT Vertical Tab
.raw([0x1b, 0x64, 0x04]) // CTL_VT Vertical Tab
.cut("full")
.encode();
This node-thermal-printer
has some constants that are handy for this type of thing:
https://github.com/Klemen1337/node-thermal-printer/blob/master/lib/types/epson-config.js
This should be fixed in the upcoming version 3.
It includes a way to configure the number of lines you want to feed before cutting. And it has default values for a whole bunch of populair printers.
it cuts before it finishes print what it is going to write.