I am converting word to HTML and the formatting is completely messed up all the shapes are randomly arranged in the html . I need to know if the layout like the one in word needs to be preserved then what word setting will work with your product.
Below is the image of my word document
image.jpg (360.1 KB)
Image after conversion to HTML
image.jpg (426.3 KB)
Attaching the input word and output html
SampleDocument.zip (1.8 MB)
@cyrusdaru1
Unfortunately, there is no such setting in MS Word. You can save your original document as a Web-page using MS Word and make sure that its layout is completely incorrect when viewed in a browser. Meanwhile, in case of viewing this saved Web-page in MS Word editor the picture will be much better. This is because Docx and Html are extremely different formats, so one shall not expect a correct roundtrip from them in case of complex markup, and MS Word gets around the situation by adding a lot of roundtrip information that is taken into account only by MS Word itself.
Aspose.Words can only offer you saving in HtmlFixed format in this situation. In this case, when viewed in a browser, the layout will maximally resemble the initial one.