Docotic.Pdf Library Help > BitMiracle.Docotic.Pdf > PdfDocument Class > PdfDocument Methods > CopyPages Method > CopyPages Method (Int32, Int32, PdfConfigurationOptions)
Copies a range of pages into new PdfDocument using specified configuration options. This PdfDocument remains unchanged.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public PdfDocument CopyPages(
	int index,
	int count,
	PdfConfigurationOptions options
)
VB
Public Function CopyPages ( 
	index As Integer,
	count As Integer,
	options As PdfConfigurationOptions
) As PdfDocument

Parameters

index
Type: System.Int32
The zero-based starting index of the range of pages to copy.
count
Type: System.Int32
The number of pages to copy.
options
Type: BitMiracle.Docotic.Pdf.PdfConfigurationOptions
The configuration options.

Return Value

Type: PdfDocument
A new PdfDocument that contains copied pages.

Remarks

This PdfDocument remains unchanged.

The new document will use the specified configuration options.

Use ExtractPages Overload if you want to extract pages from this PdfDocument.

See Also