This sample shows how to extract pages from one PDF document to another.
Use PdfDocument.ExtractPages method to extract pages to new document. Please note that ExtractPages method removes pages from the source document.
Extraction of pages from a single-paged document is forbidden.