lsongdev / node-escpos

🖨️ ESC/POS Printer driver for Node.js
https://npmjs.org/escpos
Other
1.38k stars 423 forks source link

How to put two QRcodes on the same line? #369

Open fecherwu opened 3 years ago

fecherwu commented 3 years ago

Using the following code will cause the qrcode to wrap. I want the qrcode to be at the same level. How can I modify it? thanks

device.open(function () { printer .qrimage('https://github.com/song940/node-escpos', { type: 'png', size: 5 }, ) .qrimage('https://github.com/song940/node-escpos', { type: 'png', size: 5 }, function (err) { this.cut(); //this.close(); }); });

This is what I printed out: IMG_4273

I want to print this type of layout: IMG_4274