Open JKatzwinkel opened 3 years ago
The question is whether https://github.com/PRImA-Research-Lab/prima-page-to-pdf is compatible with Java != 8
. From past experience with PRImA tools I doubt it, but please try it and find out for yourself with your proposed change.
The question is whether https://github.com/PRImA-Research-Lab/prima-page-to-pdf is compatible with Java
!= 8
. From past experience with PRImA tools I doubt it, but please try it and find out for yourself with your proposed change.
AFAICT all PRImA libs need to be reuilt for Java 11. It's possible, I've done it. But the whole Eclipse-based build is undocumented, and there are some problems with it – see discussion here
Thanks for your quick and informative responses! I'm gonna put a note into our documentation suggesting some kind workaround. Feel free to close!
I just tried Java openjdk version "16-ea" 2021-03-16
[sic] with Debian bullyeye. It created a PDF file and did not complain, so maybe it works better than expected with newer versions of Java.
I just tried Java
openjdk version "16-ea" 2021-03-16
[sic] with Debian bullyeye. It created a PDF file and did not complain, so maybe it works better than expected with newer versions of Java.
In that case, perhaps a neutral default-jdk
would be the better dependency for the moment?
Yes, as soon as my preliminary result is confirmed. I got a PDF with the image, but no selectable text. That might be caused by my test data, but could also be caused by the Java version.
I had to add -text-source W
when running PageToPdf.jar
. Now the generated PDF has a working text layer.
So it seems to work fine.
@JKatzwinkel, @bertsky, I changed Makefile
to install default-jre-headless
now. That should work and fix this issue.
Very nice, I seem to be able to make all
of ocrd_all
again. Thanks a ton!
The question is whether https://github.com/PRImA-Research-Lab/prima-page-to-pdf is compatible with Java
!= 8
. From past experience with PRImA tools I doubt it, but please try it and find out for yourself with your proposed change.AFAICT all PRImA libs need to be reuilt for Java 11. It's possible, I've done it.
Except for prima-page-converter's dependency PrimaText.jar, which is mostly closed-source.
Make target
deps-ubuntu
fails on Debian 10 (buster), due to dependencyopenjdk-8-jre-headless
not being in the standard packages. Isocrd_pagetopdf
compatible with Java 11 and would it be possible to add to your Makefile a conditional along the lines of...or something like this in order to have installation work on Debian 10?