node-thermal-printer icon indicating copy to clipboard operation
node-thermal-printer copied to clipboard

how to set paper size for 80mm print and 58 mm print

Open sassymonks opened this issue 3 years ago • 1 comments

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?

sassymonks avatar May 26 '22 08:05 sassymonks

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

OverSamu avatar Jul 03 '22 18:07 OverSamu