Printer icon indicating copy to clipboard operation
Printer copied to clipboard

Fatal error: Index out of range Image printing

Open KansV3Cube opened this issue 6 years ago • 5 comments

While printing image getting this error and application crashed.

Please help me out

KansV3Cube avatar Feb 22 '20 05:02 KansV3Cube

I got same issue :( Have you found solution?

kaitoshadow avatar Jan 25 '22 14:01 kaitoshadow

Printer framework has been rewrite.

can you help testing qrcode&image command?

let receipt = Receipt(.🖨️58(.ascii))
<<~ .style(.initialize)
<<< QRCode(content: "https://g.cn")
<<< Image(cgImage)

KevinGong2013 avatar Feb 03 '23 09:02 KevinGong2013

Hi is there any way to Print Arabic langauge?

manojssas avatar Feb 05 '23 09:02 manojssas

@KevinGong2013 How to print arabic Langauge if coming from server?

manojssas avatar Feb 05 '23 09:02 manojssas


public extension String {
    
    struct ArabicEncoding {
        public static let windowsArabic = String.Encoding(rawValue: CFStringConvertEncodingToNSStringEncoding(CFStringEncoding(CFStringEncodings.windowsArabic.rawValue)))
    }
}

let receipt = Receipt(.🖨️58(String.ArabicEncoding.windowsArabic))

KevinGong2013 avatar Feb 06 '23 02:02 KevinGong2013