This sample shows how to extract pages from a PDF document, creating a new PDF document.
Use PdfDocument.ExtractPages methods to create a new document with extracted pages. Docotic.Pdf library throws an exception if you try to extract pages from a document that contains only one page.
NOTE: The ExtractPages
methods remove pages from the source document.