pylearndl

Results 14 comments of pylearndl

Upload your demo image here. Is it jpg image you want to print? What is image size? Height x width of image ?

try code ` let img = UIImage(named: "demo")! var receipt = Receipt() receipt.feedLinesOnTail = 1 let imgblock = ImageBlock(img, attributes: [ImageBlock.PredefinedAttribute.alignment(.center)]) receipt.add(block: imgblock) for datas in receipt.datas { let sendtest...

Try converting qr to image, then print

> > let img = UIImage(named: "demo")! var receipt = Receipt() receipt.feedLinesOnTail = 1 let imgblock = ImageBlock(img, attributes: [ImageBlock.PredefinedAttribute.alignment(.center)]) receipt.add(block: imgblock) for datas in receipt.datas { let sendtest =...

@DhanjuAjay which thermal printer are you using? Have you tried another thermal receipt printer. It works on ESC/POS printers Try 80mm thermal receipt printer from eBay will do the job

https://www.ebay.co.uk/c/1874761593 2017 WiFi POS Wireless Thermal Receipt Printer 80mm Auto ... Successfully tested and working on these printers

I think your printer is for label printing. I haven't tested my code on label printer. I'm sure image will print, if you try print on 80mm receipt printer, is...

Print only square logo image. Try one of 32x32 px, 64x64, 128x128, 256x256. If your image is not any of these size than resize programmatically before give it to printer's...

Send me screenshot and error, what printer you using? My all deployed ios apps are working on wifi 80mm thermal printer just fine. Kevins' code wasn't working initially when I...

What printer you using? Send me image