lsongdev / node-escpos

🖨️ ESC/POS Printer driver for Node.js
https://npmjs.org/escpos
Other
1.38k stars 423 forks source link

Unable to print text #381

Open khanof89 opened 2 years ago

khanof89 commented 2 years ago

I am using the following command to print text but its not doing so, just printing the barcode

    printer
    .font('a')
    .align('ct')
    .size(1, 1)
    .text('EAN13 barcode example')
    .barcode('123456789012', 'EAN13') // code length 12
    .cut()
    .close();

I am not sure which printer it is, because it is white labelled with a private company's name, but in the command it is mentioned

ESC/POS/TSC/EPL/CPCL

It would be really helpful if your example may include full code to design a barcode, with different kind of placements