hennedo / escpos

golang library for espos printers, supporting images, barcodes and qr codes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

centering the QR code

simaybocu opened this issue · comments

printer.QRCode(QrUrl, true, 5, escpos.QRCodeErrorCorrectionLevelH)
I want to center the QR code that I created in this way, so I want it to add a space from the left and go a little more to the right, but I could not center it with any method. Is it possible to do this can you help please?

It didn't work even if I used lineSpacing before qr code generation :(