node-escpos
node-escpos copied to clipboard
Please include an option to change the width of the paper
I use this module and get a print that is too long on each line, so it's not neat
and my printer should use a size of 30 instead of 48
this is the result
I manually edit in node_modules
Please include an option to set the character size per line along with the encoding options
As you can see here. If you pass in printer options the width. Yo do not need to change library.
const options = {
encoding: "GB18030",
width: 30
}
const printer = new escpos.Printer(device, options);
thanks , apparently I forgot to check the version that I am using, and I am using the old version ^ 2.5.2 in package.json