Closed yubinchen18 closed 4 years ago
The code logic should be this one instead
var escpos = Neodynamic.JSESCPOSBuilder;
var doc = new escpos.Document();
doc.font(escpos.FontFamily.B).size(0, 0);
for (var i = 0, len = lines.length; i < len; i++) {
var line = lines[i];
doc.text(line);
}
var escposCommands = doc.feed(5).cut().generateUInt8Array();
cpj.binaryPrinterCommands = escposCommands;
//Send print job to printer!
cpj.sendToClient();
cpj.binaryPrinterCommands = escposCommands;
this doesn't work?