Hi,
My own opinion is that this looks like a pain, more than just including
a library my changing the pom.xml. But that's just me. The licensing
problem doesn't mean one can't use it, it just means we can't distribute it.
If you come up with a solution then can test it with my rendering
regression tests (about 1000 files).
Tilman
On 01.01.2023 12:06, Aleksandr Kazakov wrote:
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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org