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

Is OpenPDB library is fully supported on Android? #1173

Open
ctoabidmaqbool1 opened this issue May 29, 2024 · 3 comments
Open

Is OpenPDB library is fully supported on Android? #1173

ctoabidmaqbool1 opened this issue May 29, 2024 · 3 comments
Labels
android Issue apearing only with Android question wontfix

Comments

@ctoabidmaqbool1
Copy link

Hi! Devs, Is OpenPDF library is fully supported on Android too?

Before choosing OpenPDF I was using iText PDF 5.x without any issue on Android, e.g.
Java, Javafx 1.8 Project with old Gluon Mobile plugin project

But OpenPDF is not be used on Andoird becasue it's dependent upon java.awt package e.g. java.awt.Color.

@ctoabidmaqbool1
Copy link
Author

Okey, I think, OpenPdf have alrady provided the solution here too!
https://github.com/LibrePDF/OpenPDF/wiki/Android-support

let me check it!

@asturio asturio added question wontfix android Issue apearing only with Android and removed bug labels Jun 10, 2024
@lukaskris
Copy link

I using at android its work well at debug application
butt
at release application i facing error

Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.Iterator java.util.HashSet.iterator()' on a null object reference at javax.imageio.spi.ServiceRegistry$LookupProvidersIterator.<init>(ServiceRegistry.java:595) at javax.imageio.spi.ServiceRegistry.lookupProviders(ServiceRegistry.java:54) at javax.imageio.spi.ServiceRegistry.lookupProviders(ServiceRegistry.java:58) at javax.imageio.spi.IIORegistry$1.run(IIORegistry.java:94) at java.security.AccessController.doPrivileged(AccessController.java:46) at javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(IIORegistry.java:90) at javax.imageio.spi.IIORegistry.<init>(IIORegistry.java:57) at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:80) at javax.imageio.ImageIO.<clinit>(ImageIO.java:50) at com.lowagie.text.ImageLoader.getPngImage(ImageLoader.java:75)

until now i not have the solution

@ctoabidmaqbool
Copy link

Please note that, https://github.com/andob/android-awt is now not active one repo, It's not working in latest Android / Java!
Like in Graalvm native-image feature it's not working at all!

Still itext pdf 5 can be used in Android too, (it generated many error / warning in Android but still it's working in Android). OpenPdf must support all major platform e.g. Android!

A single library is best which is working on all major platform as Javafx is now complely cross-pltform!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Issue apearing only with Android question wontfix
Projects
None yet
Development

No branches or pull requests

4 participants