Click or drag to resize

PdfDocumentAddHTMLHeaders Method

Renders HTML page headers to an existing PDF File

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: (
public void AddHTMLHeaders(
	HtmlHeaderFooter Header,
	bool SkipFirstPage = false,
	IEnumerable<int> PageIndexesToAddHeadersTo = null


Type: IronPdfHtmlHeaderFooter
An new instance of IronPdf.HtmlHeaderFooter that defines the header content and layout.
SkipFirstPage (Optional)
Type: SystemBoolean
if set to true, the first (cover) page is not counted or stamped with a header.
PageIndexesToAddHeadersTo (Optional)
Type: System.Collections.GenericIEnumerableInt32
Optional. The PageIndexes (zero-based page numbers) to which the header will be added.
See Also