We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm not able to print a 128x128 full black image (or any other image).
TicketImage code:
Block.defaultFeedPoints = 30 var ticket = Ticket() ticket.feedLinesOnTail = 3 ticket.feedLinesOnHead = 0 ticket.add(block: .image(UIImage(named: "black")!, attributes: TicketImage.PredefinedAttribute.alignment(.center))) ticket.add(block: .title("TEST")) ticket.add(block: .text(.init(content: "TEST", predefined: .alignment(.left)))) ... ... print
Should this depend on the printer device? I'm using a GOOJPRT PT-210 thermal printer.
Everything else works great!
The text was updated successfully, but these errors were encountered:
@KevinGong2013 any news about this task?
Sorry, something went wrong.
Check the scale of image (image.scale) or resize it to 1x scale and image width must mod 8 = 0
Printer has been rewrite.
Please try this code.
let receipt = Receipt(.🖨️58(.ascii)) <<~ .style(.initialize) <<< Image(cgImage) <<~ .page(.printAndFeed(lines: 1))
No branches or pull requests
I'm not able to print a 128x128 full black image (or any other image).
TicketImage code:
Should this depend on the printer device?
I'm using a GOOJPRT PT-210 thermal printer.
Everything else works great!
The text was updated successfully, but these errors were encountered: