Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The image cannot be printed completely #419

Open
fecherwu opened this issue Feb 10, 2023 · 1 comment
Open

The image cannot be printed completely #419

fecherwu opened this issue Feb 10, 2023 · 1 comment

Comments

@fecherwu
Copy link

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

@codewithshinde
Copy link

Try this :)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants