pdfsizeopt
pdfsizeopt copied to clipboard
Multivalent does not work using Avian
When I run pdfsizeopt with Multivalent enabled using the included avian executable, I get an error:
> pdfsizeopt --use-multivalent=yes input.pdf output.pdf
java/lang/ExceptionInInitializerError
caused by: java/lang/NoSuchMethodError: sort ([I)V not found in java/util/Arrays
at tool/pdf/Compress.<clinit> (unknown line)
fatal: Multivalent failed, status=0xff00
After removing the avian executable from the pdfsizeopt_libexec folder, my local java installation is used (OpenJDK 11) and it works as expected.
I have exactly the same problem.
If I rename pdfsizeopt_libexec/avian
, then it works.
Thanks @joshuakraemer for your valuable suggestion.
Here is more information about Avian, a lightweight (but incomplete) java implementation.
I've used Multipart from https://github.com/tsibley/multivalent-tools.