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
I'm running on electron 1.4.13 on Windows 10, after a lots of work, I have successful build this module.,and I could get getPrinters and getDefaultPrinter worked,however,when I try to print something use printDirect,I could print nothing, when I choose to print to a pdf,the size of pdf is 0kb.
printer.printDirect({data:'test text' // or simple String: "some text"
, printer:'Microsoft Print to PDF' // printer name, if missing then will print to default printer
, type: 'RAW' // type: RAW, TEXT, PDF, JPEG, .. depends on platform
, success:function(jobID){
console.log("sent to printer with ID: "+jobID);
}
, error:function(err){console.log(err);}
});
The console showssent to printer with ID: *,but no content is printed. Following is my printer list, I have tried three of them. Brother MFC-1919NW Printer print nothing, and the Microsoft Print to PDF get me a pdf file with size of 0KB
I'm running on electron 1.4.13 on Windows 10, after a lots of work, I have successful build this module.,and I could get
getPrinters
andgetDefaultPrinter
worked,however,when I try to print something useprintDirect
,I could print nothing, when I choose to print to a pdf,the size of pdf is 0kb.The console shows
sent to printer with ID: *
,but no content is printed. Following is my printer list, I have tried three of them.Brother MFC-1919NW Printer
print nothing, and theMicrosoft Print to PDF
get me a pdf file with size of 0KBThe text was updated successfully, but these errors were encountered: