PdfDocumentAddForegroundOverlayPdfToPage Method (Int32, String, Int32)

Adds an overlay to one page of this PDF. The foreground overlay is copied from a page in another PDF document.

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 2020.10.3
Syntax
public PdfDocument AddForegroundOverlayPdfToPage(
	int ToPageIndex,
	string OverlayPdfPath,
	int OverlayPdfPageIndex = 0
)

Parameters

ToPageIndex
Type: SystemInt32
Index (zero-based page number) of the page of this PDF to which the foreground will be applied to.
OverlayPdfPath
Type: SystemString
The overlay PDF path.
OverlayPdfPageIndex (Optional)
Type: SystemInt32
Index (zero-based page number) to copy from the Overlay PDF.

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