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

Free Support Forum - aspose.com

How to ignore Header and Footer while converting Word to HTML using Aspose.Words

How to ignore Header and Footer while converting MS Word document in to HTML file using Aspose.Words

Hi Ashley,

Thanks for your inquiry. Please use HtmlSaveOptions.ExportHeadersFootersMode property to specify how headers and footers are output to HTML, MHTML or EPUB. Default value is PerSection for HTML/MHTML and None for EPUB.

Following code example demonstrates how to disable the export of headers and footers when saving to HTML based formats.

Document doc = new Document(MyDir + "HeaderFooter.RemoveFooters.doc");
HtmlSaveOptions saveOptions = new HtmlSaveOptions(SaveFormat.Html);
saveOptions.ExportHeadersFootersMode = ExportHeadersFootersMode.None; // Disables exporting headers and footers.
doc.Save(MyDir + "HeaderFooter.DisableHeadersFooters Out.html", saveOptions);