node-escpos icon indicating copy to clipboard operation
node-escpos copied to clipboard

The image cannot be printed completely

Open fecherwu opened this issue 2 years ago • 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

fecherwu avatar Feb 10 '23 08:02 fecherwu

Try this :)

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

codewithshinde avatar Apr 21 '24 06:04 codewithshinde