HtmlExportHeadersFootersMode Enum

Wordize.Saving.HtmlExportHeadersFootersMode enum. Specifies how headers and footers are exported to HTML MHTML or EPUB.

HtmlExportHeadersFootersMode enumeration

Specifies how headers and footers are exported to HTML, MHTML or EPUB.

public enum HtmlExportHeadersFootersMode

Values

NameValueDescription
None0Headers and footers are not exported.
PerSection1Primary headers and footers are exported at the beginning and the end of each section.
FirstSectionHeaderLastSectionFooter2Primary header of the first section is exported at the beginning of the document and primary footer is at the end.
FirstPageHeaderFooterPerSection3First page header and footer are exported at the beginning and the end of each section.

Examples

Shows how to disable exporting headers/footers to HTML.

HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions();
htmlSaveOptions.ExportHeadersFootersMode = HtmlExportHeadersFootersMode.None;

Converter.Create()
    .From(MyDir + "Simple.docx")
    .To(ArtifactsDir + "HtmlSaveOptions.ExportHeadersFootersMode.html", htmlSaveOptions)
    .Execute();

See Also