PdfDocumentAddHeadersAndFooters Method

Renders page headers and footers to an existing PDF File

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 2020.7.1
Syntax
public PdfDocument AddHeadersAndFooters(
	PdfPrintOptions Options,
	bool SkipFirstPage = false,
	IEnumerable<int> PageIndexes = null
)

Parameters

Options
Type: IronPdfPdfPrintOptions
Instance of PdfPrintOptions with the specified Header and Footer.
SkipFirstPage (Optional)
Type: SystemBoolean
if set to true, the first (cover) page is not counted or stamped with the specified Header and Footer.
PageIndexes (Optional)
Type: System.Collections.GenericIEnumerableInt32
Optional. The PageIndexes (zero-based page numbers) to which the specified Header and Footer will be added.

Return Value

Type: PdfDocument
Returns this PdfDocument object, allowing for a 'fluent' (LINQ like) chained in-line code style
See Also
Download DLL or Install with Nuget