Namespace: BitMiracle.Docotic.Pdf.HtmlToPdf
public string HeaderTemplate { get; set; }
Public Property HeaderTemplate As String Get Set
Default value: null.
The template should be valid HTML. The conversion engine won't wait for external resources to load. Therefore, it is recommended to use inline styles. Data URIs are recommended for images.
You might want to specify a top margin for the page using the MarginTop property. Without the margin, the header may be obscured by the page contents.
When creating PDF pages, the library will inject values into HTML entities with the following classes:
The library won't add header and footer if both this and FooterTemplate property values are null or empty strings.