node-escpos
node-escpos copied to clipboard
The image cannot be printed completely
Hello, according to your method, I tried to write and print, but when I wrote the background, there was a branch when printing. How can I solve the problem of incomplete printing caused by the branch?
Try this :)
device.open(function() => {
const noLineSpacingCommand = Buffer.from([0x1b, 0x33, 0x00]);
device.write(noLineSpacingCommand);
printer.raster(image);