song940/node-escpos

The image cannot be printed completely

fecherwu opened this issue · 1 comments

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?
216535533-1c584fb9-9e90-4878-a0f3-50f33cecafdd
216535694-4b19958f-64f9-402c-8229-b728a797f2a1

Try this :)

device.open(function() => {
  const noLineSpacingCommand = Buffer.from([0x1b, 0x33, 0x00]);
  device.write(noLineSpacingCommand);
  printer.raster(image);