anastaciocintra / escpos-coffee-samples

https://anastaciocintra.github.io/escpos-coffee
MIT License
48 stars 17 forks source link

BufferedImage doesn't exists on Android #9

Closed sfabio01 closed 3 years ago

sfabio01 commented 4 years ago

I'm not able to print a PDF from my Android app because BufferedImage class is not defined in Android

anastaciocintra commented 4 years ago

Are you saying about the code pdf printing on escpos-samples?

https://github.com/anastaciocintra/escpos-coffee-samples/tree/master/miscellaneous/PdfPrinting

sfabio01 commented 4 years ago

Exactly, I was trying to convert a pdf to image in my android app but seems like the package that contains the BufferedImage class doesn't exists because Android uses its own packages for image rendering. Actually I don't need it anymore but I hope I've been helpful presenting the issue.

Il dom 15 nov 2020, 12:56 PM Marco Antonio Anastacio Cintra < notifications@github.com> ha scritto:

Are you saying about the code pdf printing on escpos-samples?

https://github.com/anastaciocintra/escpos-coffee-samples/tree/master/miscellaneous/PdfPrinting

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/anastaciocintra/escpos-coffee-samples/issues/9#issuecomment-727558256, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKSIU4E65CQQGPDQ3N2VUPDSP66WBANCNFSM4TWDUNKA .

anastaciocintra commented 4 years ago

Hi @sfabio01 I've wrote one sample (just now) using PdfRenderer (android lib)

its on https://github.com/anastaciocintra/escpos-coffee-samples/tree/master/miscellaneous/pdfprintingandroid

see you.