Skip to content
ComPDF
DemoSampleAPI ReferenceFAQ

PDF Generation Template Editor

Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.

View on GitHub

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);