node-thermal-printer
node-thermal-printer copied to clipboard
how to set paper size for 80mm print and 58 mm print
We are unable to set print for 58mm paper size. how to set the paper sizes for 80mm print and 48 mm print? can anyone help us out?
Hi, you can try setting the number of characters per line via the width property of the configuration. By default it is 48 characters per line (i.e. paper width 80 mm).
https://github.com/Klemen1337/node-thermal-printer/blob/62c222657a06a118a95347b5461e9fbc333e10aa/lib/core.js#L37