You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! Try checking if the printer you're printing to supports the JPEG datatype. This may be configured on the printer, but you might get more info by running "get-printer | format-list" in powershell.
Also, are you printing to Microsoft's "Print to PDF"? This throws the same error for me, even though it supports the datatype I'm sending to it.
i'm printing buffer as Image As a JPEG type here is my code
const Printer = require("@thiagoelg/node-printer");
Printer.printDirect({
data: buffer,
type: "JPEG",
success: function (jobID) {
console.log("sent to printer with ID: " + jobID);
},
and i didnt installed vscode,
The text was updated successfully, but these errors were encountered: