How to save a document to HTML format and maitain the original pages layout

Hi,
I am using Aspose.Words to convert a doc document to HTML format. The original document contains several pages, including headers and footers. Some of the pages contain very little text. When saving to a HTML, I need to create a single HTML file and maitain the original pages layout (so if the HTML is later printed, it will look the same as if the original document was printed).

I am using HtmlFixedSaveOptions to maitain the header and footers, but the pages with short text are very small and dont take the full page.
What setting should I use to maitain the original page sizes on the generated document?

Thank you!
Shahar

@shahar.algotec If you use HtmlFixed format the original document layout should be preserved, i.e. the output document should look the same as it look in MS Word. If not, please attach your input and output documents here for testing. We will check the issue and provide you more information.

thank you Alexey!
It works well. There was indeed another problem.
Thanks again.
Shahar

1 Like