We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Images lost when saving Document as DOCX

I am currently evaluating Aspose.Words and am having trouble understanding this issue with images.

Saving a document in .doc format works, but when saving in .docx format images are lost.

Example:

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.insertHtml("
");
doc.save("C:\\imageLost.docx");
doc.save("C:\\imageWorks.doc");


Hi Steven,

Thanks for your inquiry. I have tested the scenario using latest version of Aspose.Words for Java 14.11.0 and have not found the shared issue. Please use Aspose.Words for Java 14.11.0. I have attached the output document with this post for your kind reference.

Please let us know if you have any more queries.