When using the Aspose interface to save word as HTML, the layout is disordered

When using the Aspose interface to save word as HTML, the layout is disordered
image.png (23.1 KB)
image.png (109.2 KB)

this is my code:

Document doc = new Document("D://Aspose//EPPR_54126//EPPR_54126.docx");
HtmlSaveOptions options = new HtmlSaveOptions();
options.setUseAntiAliasing(true);
doc.save("D://Aspose//EPPR_54126//output//EPPR_54126.html", options);

this is my word:EPPR_54126.zip (48.5 KB)

@xhaixia This is not a bug, but expected behavior. It is impossible to have 100% layout fidelity when convert from MS Word document to flow HTML. If you save your document to HTML using MS Word you will get almost the same result.
If you need to preserve the original document layout after converting document to HTML, you can consider saving your document in HtmlFixed format. In this case all elements are absolutely positioned and output document looks the same as is you save it to PDF or view in MS Word:

Document doc = new Document("C:\\Temp\\in.docx");
HtmlFixedSaveOptions options = new HtmlFixedSaveOptions();
options.setUseAntiAliasing(true);
doc.save("C:\\Temp\\out.html", options);