Hello!

Thank you for the great PDF tool!

I want to ask about applying the OpenJpeg library to JPEG2000 handling in
PDFBox.

The problem with jai-imageio-jpeg2000 is its license, while the license of
https://github.com/uclouvain/openjpeg is free for commercial use.

OpenJpeg is written in C, but there are a few java-bindings:
1.
https://mvnrepository.com/artifact/de.digitalcollections.imageio/imageio-openjpeg
2.
https://github.com/uclouvain/openjpeg/blob/master/wrapping/java/openjp2/java-sources/org/openJpeg/OpenJPEGJavaDecoder.java
3. https://github.com/ElMostafaIdrassi/OpenJPEGJNI (a fork of 2nd, it
states that 2nd is outdated)

The first question is, why OpenJpeg has not yet been applied instead of
jai-imageio-jpeg2000 in PDFBox?

Because if there aren't any substantial reasons for that, it would be great
to change the library and avoid the pain with JPEG2000 in commercial
setting. And I would be glad to participate.

And the second question: can you give some advice on which of those
bindings I should prefer? Some caveats I should be aware of?


---
Happy new 2023 year and best wishes!
Alex

Reply via email to