Below code comes from Aspose.Imaging example project, and works well on Java 20.8, while returns error on Java 19.7
EmfImage image = (EmfImage)Image.load("/mnt/c/Project/Aspose/emf/test.emf");
image.save("/mnt/c/Project/Aspose/emf/output/test.png", new PngOptions());
It returns below error:
Exception in thread “main” class com.aspose.imaging.coreexceptions.ImageSaveException: Image export failed. —> class com.aspose.imaging.internal.Exceptions.ArgumentException: Cannot save to the specified format as it is not supported at the moment Please sure that PngOptions.VectorRasterizationOptions is correct.
Is the API pattern different between the two versions? How can I use it against Java 19.7? I only have license for this version, cannot use newer versions. My OS is Ubuntu 18.04 LTS.