Please try to add support for GraalVM native-image feature!
GraalVM is next generation emerging technology in the worlds of JVM.
And it have a feature called native-image which make code to System native executable App.
Now, Gluon Maven Plugin or Gluon Gradle Plugin liverge Javafx and GraalVM to make native app using Javafx.
Iss there any plans to support GraalVM native-image feature?
Currently ice-pdf is not supported on GraalVM native-image feature because it's dependent upon java.awt which is not available in graalvm native-image.
Sample project: https://github.com/ctoabidmaqbool1/iTextPdf-5-And-ICEpdf-Viewer-Test/tree/gluon-or-graalvm-issue
process-compile-1713796522549.log process-link-1713796524428.log
Thanks I'll add it to my todo list, looks very interesting.
I have tried any possibilities, but still I can't secessfully run icepdf on grallvm native-image because it's depedent upon Awt/Swing! As already have mentioned, I have created a sample project to test it
https://github.com/ctoabidmaqbool1/iTextPdf-5-And-ICEpdf-Viewer-Test/tree/gluon-or-graalvm-issue
gradlew build nativeBuild nativeRun
or
mvn gluonfx:build gluonfx:nativerun
The swing/awt issue is definitely an issue. Have you tried using a icepdf capture example to create a png of a page and display the png? I'd be curious what if any errors come out of the core library when rendering a page?
I will check if definatly, when I have some time! However graalvm native-image is somewhat complex and time consuming topic!