node-escpos icon indicating copy to clipboard operation
node-escpos copied to clipboard

Please include an option to change the width of the paper

Open mohamad-supangat opened this issue 3 years ago • 2 comments

I use this module and get a print that is too long on each line, so it's not neat image

and my printer should use a size of 30 instead of 48 this is the result image

I manually edit in node_modules image image image

Please include an option to set the character size per line along with the encoding options

mohamad-supangat avatar Feb 05 '21 02:02 mohamad-supangat

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);

eclyptox avatar Feb 05 '21 21:02 eclyptox

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

mohamad-supangat avatar Feb 09 '21 04:02 mohamad-supangat