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

Not able to print Image and Qr code #67

Open
saniaaaaa opened this issue Mar 8, 2023 · 2 comments
Open

Not able to print Image and Qr code #67

saniaaaaa opened this issue Mar 8, 2023 · 2 comments

Comments

@saniaaaaa
Copy link

Hi,
Not able to print Image and Qr code, it's working fine for text

i am using Printer Panda PRJ-R80B,

here's the code
let receipt = Receipt(.init(maxWidthDensity: 500, fontDesity: 12, encoding: .utf8))
<<~ .style(.initialize)
<<< Image(cgImage)
<<< QRCode(content: "https://www.yuxiaor.com")
<<~ .page(.printAndFeed(lines: 2))

if bluetoothPrinterManager!.canPrint {
bluetoothPrinterManager!.write(Data(receipt.data))
}

dummyPrinter!.write(Data(receipt.data))

and this is the output I get
Screen Shot 2023-03-08 at 17 07 51

Please help me,
Thank you

@bostagintings
Copy link

I have the same issue, can anybody please help @KevinGong2013

@Muhammadbarznji
Copy link

Muhammadbarznji commented Aug 15, 2023

Hi @saniaaaaa, About image issue rename it, because the Image is swiftUI struct.

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

3 participants