Doc to html, image position offset

Doc to html, image position offset,
1.zip (481.4 KB)

The following doc to html is also the position offset of the image
2.zip (1.7 MB)

@yanke1 Please note, Aspose.Words is designed to work with MS Word documents. HTML documents and MS Word documents object models are quite different and it is not always possible to provide 100% fidelity after conversion one format to another. In most cases Aspose.Words mimics MS Word behavior when word with HTML documents.

If it is required to keep the original document layout upon importing to HTML for viewing purposes, it is better to use HtmlFixed format. In this case the output will look exactly as in MS Word:

Document doc = new Document("C:\\temp\\in2.docx");
HtmlFixedSaveOptions opt = new HtmlFixedSaveOptions();
opt.setExportEmbeddedCss(true);
opt.setExportEmbeddedFonts(true);
opt.setExportEmbeddedImages(true);
opt.setExportEmbeddedSvg(true);
doc.save("C:\\Temp\\out2.html", opt);