PdfDocumentCopyPages Method (Int32, Int32)

Creates a new PDF by copying a range of pages from this PdfDocument.

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 2020.7.1
Syntax
public PdfDocument CopyPages(
	int StartIndex,
	int EndIndex
)

Parameters

StartIndex
Type: SystemInt32
The index of the first PDF page to copy.. Note: Page 1 has index 0
EndIndex
Type: SystemInt32
The index of the last PDF page to copy.>

Return Value

Type: PdfDocument
A new PdfDocument
See Also
Download DLL or Install with Nuget