PdfDocumentAddForegroundOverlayPdfToPageRange Method (IEnumerableInt32, PdfDocument, Int32)

Adds an overlay to a range 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.6.0.0 (2020.6.0.0)
Syntax
public PdfDocument AddForegroundOverlayPdfToPageRange(
	IEnumerable<int> ToPageIndexes,
	PdfDocument OverlayPdf,
	int OverlayPdfPageIndex = 0
)

Parameters

ToPageIndexes
Type: System.Collections.GenericIEnumerableInt32
A list of Indexes (zero-based page numbers) of pages in this PDF to which the overlay will be applied to.
OverlayPdf
Type: IronPdfPdfDocument
The overlay PDF as a PdfDocument.
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