Aug 18, 2022 Replies: 3 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 B4J https://www.apache.org/dyn/closer.lua/pdfbox/2.0.26/pdfbox-app-2.0.26.jar B4A https://www.b4x.com/android/forum/threads/pdfrenderer-v0-10-beta-create-your-own-pdf-viewer.49103/ Attachments PDFtoImage.zip PDFtoImage.zip 51.1 KB · Views: 850 Last edited: Aug 2, 2023 Click to expand...
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 B4J https://www.apache.org/dyn/closer.lua/pdfbox/2.0.26/pdfbox-app-2.0.26.jar B4A https://www.b4x.com/android/forum/threads/pdfrenderer-v0-10-beta-create-your-own-pdf-viewer.49103/
james_sgp Active Member Licensed User Longtime User Aug 2, 2023 #2 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
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 Aug 2, 2023 #3 james_sgp said: 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 Click to expand... Star-Dust said: IThis is an example that allows you to get an image with Windows / Android / iOs from a PDF file Click to expand... hi, am I right to think you didn't read the post describing exactly what platforms the code works on?
james_sgp said: 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 Click to expand... Star-Dust said: IThis is an example that allows you to get an image with Windows / Android / iOs from a PDF file Click to expand... hi, am I right to think you didn't read the post describing exactly what platforms the code works on?