pdfsizeopt icon indicating copy to clipboard operation
pdfsizeopt copied to clipboard

Multivalent does not work using Avian

Open joshuakraemer opened this issue 6 years ago • 1 comments

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.

joshuakraemer avatar Oct 03 '18 16:10 joshuakraemer

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.

DavidPerezIngeniero avatar Nov 05 '18 11:11 DavidPerezIngeniero