PdfDocumentAddBackgroundPdf Method (String, Int32)

Adds a background to each page of this PDF. The background is copied from a page in another PDF document.

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 2020.7.1
Syntax
public PdfDocument AddBackgroundPdf(
	string BackgroundPdfPath,
	int BackgroundPdfPageIndex = 0
)

Parameters

BackgroundPdfPath
Type: SystemString
The background PDF's file path.
BackgroundPdfPageIndex (Optional)
Type: SystemInt32
Index (zero-based page number) to copy from the BackgroundPdf.

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