Extracting specific chapters from an ebook, isolating invoice receipts, or dividing a massive document into manageable sections is effortless with OmniTool Hub. Visually select pages on an interactive thumbnail grid or type custom ranges (e.g. "1-3, 5, 8-10") to create new PDFs instantly.
Key Property Parameters & Specifications
| Splitting Mode | Operation Behavior | Best Use Case |
|---|---|---|
| Extract Selected Range | Creates a single new PDF containing only specified pages | Sending specific contract pages or isolated chapters |
| Split into Individual Pages | Extracts every single page into its own 1-page PDF | Batch processing scanned invoices or vouchers |
| Split by Page Interval | Divides document every N pages (e.g., every 2 pages) | Bi-fold brochures and standardized recurring forms |
| Visual Thumbnail Click | Click page thumbnails to include or exclude from output | Quick inspection of visual documents and slides |
Implementation Guide & Technical Reference
Extracting Pages via pdf-lib copyPages
const newDoc = await PDFDocument.create();
const pageIndices = [0, 2, 3]; // 0-based page numbers
const copiedPages = await newDoc.copyPages(sourceDoc, pageIndices);
copiedPages.forEach(p => newDoc.addPage(p));
const outputBytes = await newDoc.save();
Zero-loss page extraction.
Frequently Asked Questions (FAQ)
Does splitting a PDF reduce text or image quality?
No. The split engine copies existing vector and raster streams losslessly without re-encoding.
Can I extract non-consecutive pages into one document?
Yes. Enter comma-separated ranges such as "1, 4-6, 12" to bundle those pages into a new PDF.
Can I download all split pages at once?
Yes. When splitting every page, you can download all extracted pages bundled into a single ZIP archive.
Is there a page count limit?
No. The in-memory stream handles documents with hundreds of pages smoothly.