Android Code Snippet [B4X] [B4Xpages] PDF to Image (B4XBitmap)

I often needed to turn a PDF into an image, most of the time to have it printed on a thermal printer.
I was looking for simple and cross-platform methods.

This is an example that allows you to get an image with Windows / Android / iOs from a PDF file


NB. For Windows it is necessary to download a Jar, while for Android a library as indicated below. For iOs it does not require extra libraries
 

Attachments

  • PDFtoImage.zip
    51.1 KB · Views: 309
Last edited:

james_sgp

Active Member
Licensed User
Longtime User
Hey there, I`m looking to create a 'snapshot' of a PDF in my app (Android/iOS)...am I right to think your code does not cover B4i?

James
 

Star-Dust

Expert
Licensed User
Longtime User
Hey there, I`m looking to create a 'snapshot' of a PDF in my app (Android/iOS)...am I right to think your code does not cover B4i?

James
IThis is an example that allows you to get an image with Windows / Android / iOs from a PDF file
hi,
am I right to think you didn't read the post describing exactly what platforms the code works on?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…