Repeating Header and Footer

Hi we are experiencing an issue where the footer in our document is being presented improperly. It is included in the header as well as repeated several times towards the bottom of the document pages.
In addition to this problem, The header section of the document is also being presented multiple times within the document.
Can you please have a look at this issue and provide a recommendation on how we can correct this issue?
I’ve attached the original Word document and the generated MHTML.

Hi Brian,

Thanks for your inquiry.

I think, in your case, you need to specify additional options when saving a Word document into the Mhtml format. Please try using the following code snippet that worked for me:

Document doc = new Document(@"c:\test\RepeatingHeaderFooter\T.doc");
HtmlSaveOptions saveOptions = new HtmlSaveOptions();
saveOptions.SaveFormat = SaveFormat.Mhtml;
saveOptions.ExportHeadersFootersMode = ExportHeadersFootersMode.FirstSectionHeaderLastSectionFooter;
doc.Save(@"c:\test\RepeatingHeaderFooter\T_out.mht", saveOptions);

I hope, this will help.

Best Regards.