Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Center Barcode & QR #542

Open
Gueoff opened this issue Oct 8, 2024 · 0 comments
Open

Center Barcode & QR #542

Gueoff opened this issue Oct 8, 2024 · 0 comments

Comments

@Gueoff
Copy link

Gueoff commented Oct 8, 2024

Hello!
Thanks for the library, it's working pretty well.
I have troubles to align barcode then QR code, if 'I'm printing the QR code then the barcode, it's aligned fine. but when I'm printing the barcode then the QR code then the QR code is not centered :/

This is what i'm sending for the 1st ticket:

[C]<barcode type='ean13' height='10'>990000001234</barcode>
[C]<qrcode size='30'>https://google.es</qrcode>

Then for the 2nd:

[C]<qrcode size='30'>https://google.es</qrcode>
[C]<barcode type='ean13' height='10'>990000001234</barcode>

And this is the result:
qrbar

val printer = EscPosPrinter(UsbConnection(usbManager, usbDevice), 203, 80f, 32 ) printer.printFormattedTextAndCut("${printText}")

And this is the result from the Readme
461313403_1246192536594367_4927657990470247022_n

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant