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

Please provide Android support for GrallVM native-image feature; #1193

Open
ctoabidmaqbool opened this issue Jul 21, 2024 · 4 comments
Open

Comments

@ctoabidmaqbool
Copy link

I know OpenPdf is not officially supported on Android devices.

Still any chances to provide support on Android Device, I am instrusted to make Android App using Gluon's plugins e.g. gluonfx-maven-plugin or gluon-gradle-plugin. which behind the scene liverges the GraalVM native-image featue.

Still itTextPdf 5 can run on Android without any manor issue, but OpenPdf lackes supports on this side!

@ctoabidmaqbool
Copy link
Author

#1173

Gluon are providing Javafx support on Android and IOS too, and also JPro is providing support on Web!

I need single PDF solutions which must works on all major platforms, Windows, Linux, MacOS, Android, IOS, Web, why not OpenPdf be a libray which not which not just focus on Desktop OS but Android in mind too, like iTextPDF is doing so!

The main problem with iText PDF 5 is that is not supported on Java JPMS system, and itext 7.x can't be freely used other languages e.g. Arabic, Urdu, Hindi etc!

@melloware
Copy link

I have it working on GraalVM for Quarkus. You can look at my code to see the GraalVM changes necessary: https://github.com/quarkiverse/quarkus-itext

@ctoabidmaqbool1
Copy link

ctoabidmaqbool1 commented Oct 27, 2024

@melloware Thanks for giving me help,
Note please iText or OpenPdf works with GraalVM native-image in desktop without any issue.
But I am trying to use OpenPdf in graalvm native-image for Android (APK).

To make Android Apps, Currently I can use gluonfx-maven-plugin or gluonfx-gradle-plugin with also liverge Graalvm technology.

So how can I test your provided project in Android?

Also I am more instrusted in using OpenPdf in GraalVM native-image for Android without any frameworks e.g. Quarks!

@melloware
Copy link

Yep you would have to translate what I did for Quarkus to GluonFX as I don't know anything about Gluon. But the secret to GraalVM is right here in this class: https://github.com/quarkiverse/quarkus-itext/blob/main/quarkus-openpdf/deployment/src/main/java/io/quarkiverse/itext/openpdf/deployment/OpenpdfProcessor.java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants