icepdf icon indicating copy to clipboard operation
icepdf copied to clipboard

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

Open ctoabidmaqbool1 opened this issue 1 year ago • 5 comments

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 avatar Apr 22 '24 14:04 ctoabidmaqbool1

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

ctoabidmaqbool1 avatar Apr 22 '24 15:04 ctoabidmaqbool1

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

pcorless avatar Apr 23 '24 05:04 pcorless

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

ctoabidmaqbool avatar Aug 18 '24 04:08 ctoabidmaqbool

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?

pcorless avatar Oct 03 '24 03:10 pcorless

I will check if definatly, when I have some time! However graalvm native-image is somewhat complex and time consuming topic!

ctoabidmaqbool avatar Oct 03 '24 03:10 ctoabidmaqbool