Header and Footer - onizet/html2openxml GitHub Wiki
This library exposes a public API to parse some html chunks and append into the header or footer. This is required because images and hyperlinks must be created with a relationship with its container (header, footer or mainDocumentPart (body)).
public Task ParseHeader(string html, HeaderFooterValues? headerType = null, CancellationToken cancellationToken = default)
public Task ParseFooter(string html, HeaderFooterValues? headerType = null, CancellationToken cancellationToken = default)
public Task ParseBody(string html, CancellationToken cancellationToken = default)
HeaderFooterValues
allow to determines on which pages (odd, even or first page) to display the template.