Conversion to MHTML results in IllegalArgumentException: Parameter name: escherBrightness

Hi

When I convert a word document to MTHML, the following exception is thrown:
Caused by: java.lang.IllegalArgumentException: Parameter name: escherBrightness
at com.aspose.words.ImageData.zzYl(Unknown Source)
at com.aspose.words.ImageData.getBrightness(Unknown Source)


The word document (see attachment) contains a image (emf) with brightness set to a value higher than 50% (51% in this example).
The same exception is thrown when using a different emf (tried 2 others as well).
Verified with Aspose.Words for Java 14.9 and 14.10.

Code to reproduce the issue:

public static void main(String[] args) throws Exception {
FileInputStream fis = new FileInputStream(“sample.docx”);
Document doc = new Document(fis);
doc.save(new ByteArrayOutputStream(), new HtmlSaveOptions(SaveFormat.MHTML));
}


Thanks in advance.

Kind regards
Stephan

Hi Stephan,

Thanks for your inquiry. I tested the scenario and have managed to reproduce the same problem on my side. For the sake of correction, I have logged this problem in our issue tracking system as WORDSNET-11026. We will further look into the details of this problem and keep you updated on the status of correction. We apologize for your inconvenience.

Best regards,

The issues you have found earlier (filed as WORDSNET-11026) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.

Thanks for the fix.

Kind regards
Stephan Merkli