Extracts specified pages into new PdfDocument.

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

Syntax

C#
public PdfDocument ExtractPages(
	PdfPage[] pages
)
VB
Public Function ExtractPages ( 
	pages As PdfPage()
) As PdfDocument

Parameters

pages
Type: BitMiracle.Docotic.Pdf.PdfPage[]
The array of pages to extract.

Return Value

Type: PdfDocument
A new PdfDocument that contains extracted pages.

Remarks

Extracted pages will be deleted from this PdfDocument.

If PdfDocument contains a single page then the PdfException will be thrown.

Use CopyPages Overload if you want to just copy pages from this PdfDocument.

See Also