leesiongchan / react-native-esc-pos

A React Native ESC/POS module to help you connect to your ESC/POS printer easily.
MIT License
80 stars 84 forks source link

Broken QR Code #56

Open Programmer-AC opened 4 years ago

Programmer-AC commented 4 years ago

Thank you for providing this great library. When I try to print the qr_code, the QRCode is broken (see above image) I tried to remove "baos.write(CTL_LF);" in PrinterService.generateImageByteArrayOutputStream(..) (line 331). Everything work just fine. It is my printer issue or really a bug?

qr_code

leesiongchan commented 4 years ago

Could it be the printing width?

Programmer-AC commented 4 years ago

I think you refer to EscPos.setPrintingSize(EscPos.PRINTING_SIZE_58_MM); My printer is 58MM and I tested set all 3 size but still get the same problem.