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 printer keeps showing that it is printing when printing pictures #296

Open
leon0x00 opened this issue Jul 8, 2020 · 0 comments
Open

Comments

@leon0x00
Copy link

leon0x00 commented Jul 8, 2020

What happens?

The printer keeps showing that it is printing when printing pictures, Do you need to set the type attribute?

How To Reproduce

var fs = require('fs');
printer.printDirect({
  data: fs.readFileSync('C:\\Users\\baiyuhang\\test.png'),
  success: function(jobID){
    console.log("sent to printer with ID: "+jobID);
  },
  error: function(err){
    console.log(err);
  }
});

Context

node-printer Version: 0.4.0

Node Version: 10.9.0

Platform: Windows 7 64bit

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

1 participant