song940/node-escpos

Unable to print text

khanof89 opened this issue · 0 comments

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