node-printer
node-printer copied to clipboard
Print HTML content
I have to generate print based on that some html content, for that i have write one function which gives me html
within that html code arise, and now how can i print this html ?
Is there any way to do that ?
My code is here :: var printer = require('printer')
printer.printDirect({ data: some HTML content like header etc.., printer: 'Epson-TM-BA-Thermal', type: 'RAW', // may i provide any other type of html? success: function (jobID) { console.log('sent to printer with ID: ' + jobID) }, error: function (err) { console.log(err) } })
+1
+1
Convert to PDF first maybe.
+1
+1