Namespace: BitMiracle.Docotic.Pdf
public PdfDocument ExtractPages( int index, int count, PdfConfigurationOptions options )
Public Function ExtractPages ( index As Integer, count As Integer, options As PdfConfigurationOptions ) As PdfDocument
Extracted pages will be deleted from this PdfDocument.
The new document will use the specified configuration options.
If PdfDocument contains a single page then the PdfException will be thrown.
Use CopyPages() if you want to just copy pages from this PdfDocument.
Try RemoveUnusedResources() method on the new document. This method can reduce document size in cases when the extracted pages reference unused resources such as fonts, images, patterns.