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,
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