When converting the original DOC to be a DOCX, the images are lost in the DOCX.
Using - aspose-words-20.5-jdk17.jar
This is the DOC2DOCX code:
com.aspose.words.Document doc = new com.aspose.words.Document(inputPath);
if (doc.hasMacros()) {
doc.removeMacros();
System.out.println(“Macros have been removed”);
}
doc.save(outputPath, com.aspose.words.SaveFormat.DOCX);
Here are the files, the original DOC and the converted DOCX:
MissingImages.zip (42.0 KB)