Click or drag to resize

PdfDocumentAddHTMLHeaders Method (HtmlHeaderFooter, Double, Double, Double, Boolean, IEnumerableInt32)

Renders HTML page headers to an existing PDF File

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 4.4.9.15720 (4.4.9.0)
Syntax
public void AddHTMLHeaders(
	HtmlHeaderFooter Header,
	double MarginLeft,
	double MarginRight,
	double MarginTop,
	bool SkipFirstPage = false,
	IEnumerable<int> PageIndexesToAddHeadersTo = null
)

Parameters

Header
Type: IronPdfHtmlHeaderFooter
An new instance of IronPdf.HtmlHeaderFooter that defines the header content and layout.
MarginLeft
Type: SystemDouble
The left margin of the header on the page in mm.
MarginRight
Type: SystemDouble
The right margin of the header on the page in mm.
MarginTop
Type: SystemDouble
The top margin of the header on the page in mm.
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