Formatting Issue while generating HTML/MHTML

Hello there,

I modified my source document as per your suggestion in following post:
https://forum.aspose.com/t/77635

and as you suggested put the Image tag inside Table instead of Textbox.
Though the earlier issue where Image was jumping out of Textbox is resolved, but there are still issues with html/mhtml output:

  1. The two textboxes in source document are being converted into Image while genrating html/mhtml.
    So, there are always some extra Images while generating html/mhtml.
    How can we avoid this happening?

  2. Extra space is being added after the table containing Image.
    Output looks good while generating pdf/doc but this is issue again for html/mhtml output.

I have attached files(source file + pdf and html output) for your reference.

Thanks you!

Hello

Thanks for your request. As you already know all TextBoxes are converted to shapes during converting to HTML/MHTML. So to avoid this behavior you should use tables instead of TextBoxes. Please follow the link to learn details about how Aspose.Words saves document in the HTML/XHTML and MHTML formats:
https://docs.aspose.com/words/net/save-in-html-xhtml-mhtml-formats/
Regarding the problem with extra space, I suppose this problem disappears in case of using tables instead of TextBoxes.
Please let me know in case of any issues I will be glad to help you.
Best regards,