Extract targeted pages or custom page ranges from a PDF document to build a new consolidated file. This tool runs 100% locally client-side using pdf-lib, so your files are processed entirely in your browser and never sent to a server.
Key Features of Extract PDF Pages
- Custom Page Range Syntax Select specific single pages or blocks of pages using standard comma and hyphen annotations (e.g., 1, 3-5).
- Invert Selection (Page Deletion) Invert your selection with a single click to easily delete unwanted pages and keep the rest.
- Instant Preview Mapping Validates inputted index patterns against total page bounds in real-time before compile.
- No Network Overheads All calculations happen locally, safeguarding your documents from being uploaded.
Extract PDF Pages Examples
Deleting Pages 2 and 4
Remove specific erroneous blank pages from a multi-page scan.
Input
Document_5pages.pdf with page index '2, 4' and 'Invert selection' enabled
Output
Document_Reconstructed_3pages.pdf containing only pages 1, 3, and 5
How to Use Extract PDF Pages
-
1. Upload Your PDF
Drag and drop a PDF file onto the drop zone or click to browse and select it from your device.
-
2. Enter Page Numbers or Ranges
Type the pages you want to extract (e.g. 1, 3-5, 8) or enable 'Invert selection' to delete those pages and keep the rest.
-
3. Extract and Download
Click 'Extract & Save PDF' and the tool will build a new PDF with only your selected pages and download it instantly.
Common Use Cases for Extract PDF Pages
- Filtering Presentation Decks Extract only the summary and diagram slides to email to client partners.
- Redacting Contract Pages Extract and share only the signature page or terms sheet from a long agreement.
- Removing Scan Anomalies Easily delete mismatched blank pages or double-scans from a document.
The Technical Details
The Extraction utility uses pdf-lib to construct a new document buffer. It reads your selection string, parses it into an array of 0-based index integers, and bounds-checks them against the source’s total page count.
If ‘Invert Selection’ is active, the indices are subtracted from a complete range set of all page numbers. The code then runs pdf-lib’s copyPages method to map only the target pages into a brand new document structure, avoiding metadata or font loss and downloading the result directly in the client browser.
Frequently Asked Questions
How do I specify page ranges?
Enter comma-separated page numbers and ranges such as '1, 3-5, 8, 10-12'. Both single pages and ranges can be freely mixed.
What does 'Invert selection' do?
When enabled, the pages you enter are excluded instead of extracted. This is useful when you want to remove a few pages from a large document.
Does the original PDF change?
No. The tool reads your PDF in the browser and creates a new file. Your original PDF is never modified.
Is there a page count limit?
No hard limit is enforced. The tool processes all pages in memory, so very large PDFs may require a moment to load on slower devices.