Image is lost after ODT to DOCX conversion using Java

When converting from ODT to DOCX the image form field is not preserved.
As shown in the ODT file it contains an image form field, the DOCX that was produced by doing a file save as of the ODT file when opened in Word preserves the form field outline but not the image.
When using Aspose to translate the ODT to DOCX the image form field is not preserved at all and the document is empty.

Using - aspose-words-20.8.0-jdk17.jar

Using this code:
com.aspose.words.Document doc = new com.aspose.words.Document(inputPath);, com.aspose.words.SaveFormat.DOCX);

Here are the files: (80.3 KB)


Please note that Aspose.Words mimics the behavior of MS Word. If you convert your ODT to DOCX using MS Word, you will not get the correct output.

However, we have logged this problem in our issue tracking system as WORDSNET-20984 . You will be notified via this forum thread once there is an update available on it.


The issue you are facing is not a bug in Aspose.Words. So, we have closed this issue (WORDSNET-20984) as ‘Not a Bug’. Aspose.Words mimics the behavior of MS Word and it also ignores image form field.