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.3.2.0 (2020.3.2.0)
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
This PdfDocument for a LINQ like 'fluent' coding style.
See Also