pcorless / icepdf

PDF Rendering and Viewing API in Java
Apache License 2.0
75 stars 20 forks source link

Please try to add support for GraalVM native-image feature! #351

Open ctoabidmaqbool1 opened 4 months ago

ctoabidmaqbool1 commented 4 months ago

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?

ctoabidmaqbool1 commented 4 months ago

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

client-debug0.log client-debug0.log.1 client-debug0.log.2

pcorless commented 4 months ago

Thanks I'll add it to my todo list, looks very interesting.

ctoabidmaqbool commented 2 weeks ago

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