Skip to content
ComPDF
DemoSampleAPI ReferenceFAQ
New Release

Open-Source PDF SDK & AI Document Processing

Get the full self-hosted SDK and AI document processing on GitHub. One-click deploy to quickly build your document workflows.

Extract Pages

This example shows how to extract pages:

C#
CPDFDocument extractDocument = CPDFDocument.CreateDocument();
// Extract the first page of the original document and save it in a new document.
extractDocument.ImportPagesAtIndex(document, "1", 0);