We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Formatting Issue while generating HTML/MHTML

Hello there,

I modified my source document as per your suggestion in following post:
http://www.aspose.com/community/forums/265526/image-formatting-issue-while-genrating-html/showthread.aspx#265526

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

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

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:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/save-in-the-html-format.html

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,