PdfDocumentCopyPages Method (IEnumerableInt32)

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(
	IEnumerable<int> PageIndexes
)

Parameters

PageIndexes
Type: System.Collections.GenericIEnumerableInt32
An IEnumerable of page indexes to copy into the new PDF.

Return Value

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