Hi,
We are using aspose words for Java 11.4 to convert word document to html document.
The html generated is having more width than the word document.
1. Without any settings, the html generated uses the available window width to display contents(reducing height ).
2.We tried setting html page width = word document width. But still contents are widened in that width .
3.Using html page width = width -(left margin+right margin+gutter)of word page , the content width is fine but page width is still more and there is space between content and right border.
Let us know options available in aspose so as the html page will have same width as that of word document.
If not ,please let us know equivalent html settings so that html page looks exactly as word document page.
Thanks.
Hi Sonali,
Thanks for your inquiry and sorry for the delayed response.
Please note that each Section in Aspose.Words document model provides page setup information via PageSetup class. When you export a document to HTML format you can keep this information for further usage. Also, in most cases HTML is intended for viewing in browsers where pagination is not performed. You can use HtmlSaveOptions.ExportPageSetup property to specify whether page setup is exported to HTML, MHTML or EPUB or not. However, I am afraid, this will not affect the layout of the output HTML document.
Best Regards,