Text alignment is changed after Word to html conversion using .NET

Hi,

We are using aspose word Java.

After converting word document to html, we found that left margins of page, text, figures etc. changed and everything is aligned at leftmost side of page. Also the vertical position changed in case of side text.

For example in the attached sample document ,Aligned Text 1 and Some figure (Text 14) : These two are aligned with different left positions in word document. But after converting to html, both are at the same left position (leftmost position of html page) in html document.

For Side Text1 and Aligned Text 2: The Side Text1 contents comes before (i.e. top of) Aligned Text2 in html and not to the left of it ,as in word document.

Let us know the settings to keep the alignments intact in converted html.

Thanks.

Hi Sonali,

Thanks for your query. Please note that Aspose.Words
page layout engine tries to mimic the way the Microsoft Word’s page
layout engine works. If you convert the shared document to HTML by using MS Words, you will face the same behavior.

Please note that not all Microsoft Word document features are available in HTML format and some features may be lost after conversion. Please read following documentation link for your kind reference.

http://www.aspose.com/docs/display/wordsnet/Save+in+the+HTML+%28.HTML%2C+.XHTML%2C+.MHTML%29+Format

Hope this answer’s your query. Please let us know, If you have any more queries.