-
Notifications
You must be signed in to change notification settings - Fork 114
Header and Footer
Olivier Nizet edited this page Sep 25, 2024
·
1 revision
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.