I am using ASPOSE library to convert word document to HTML.
Word to HTML conversion considers sections in the word document and creates individual HTML page for every section in the document.
I DON’T want HTML by sections. Is there any way we can create single HTML for the word doc irrespective of number of sections document has.
Thanks for your inquiry. HtmlSaveOptions.ExportHeadersFootersMode property specifies how headers and footers are output to HTML, MHTML or EPUB. Default value is PerSection for HTML/MHTML.
You can disable export of headers and footers altogether by setting this property to None. Please use following code example to achieve your requirements and let us know if you have any more queries.
Document doc = new Document(MyDir + "in.docx");
HtmlSaveOptions options = new HtmlSaveOptions();
doc.save(MyDir + "Out.html", options);