shangmisunmi / SunmiPrinterDemo

printer test demo
290 stars 139 forks source link

QR Code not printing #79

Open pabloriquelmecas opened 1 year ago

pabloriquelmecas commented 1 year ago

Hi, I'm using the QR function to print a QR Code on the paper, but it doesn't work, but with the text function it works fine.

Text example

SunmiPrintHelper.getInstance().initSunmiPrinterService(context);
SunmiPrintHelper.getInstance().printText("Prueba impresión",24,false,true,null);

That works fine, it prints the text with the underline modifier

QR Example

SunmiPrintHelper.getInstance().initSunmiPrinterService(context);
SunmiPrintHelper.getInstance().printQr("Prueba QR",6,30);

That doesn't work, the first line init the printer succesfully but the QR doesn't generate and print.

I'm using a Sunmi V2 device Compilation number: 3.4.5 Firmware version: 829 Sunmi Version Code: 336 Sunmi OS Version: 1.7.6