tojocky / node-printer

Native node.js printer
1.51k stars 436 forks source link

The printer keeps showing that it is printing when printing pictures #296

Open okilled opened 4 years ago

okilled commented 4 years ago

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