toolgarden.xyz
中文
extract PDF pagesPDF page rangePDF tools

How to Extract Selected Pages from a PDF

Extracting selected PDF pages is useful when you only need a few contract pages, attachments, scans, or a section of a larger document.

ToolGarden tools prioritize browser-local processing, so files and text do not need to be uploaded to a server.

Published July 2, 2026Updated July 3, 20268 min readBy ToolGarden

Extracting pages usually creates one new PDF from selected pages, while splitting a PDF often creates multiple files.

When Should You Extract Pages?

Page extraction is useful when you only need part of the original PDF. You might submit only key contract pages, export selected scan pages, share one report appendix, or pull a chapter from a larger course handout.

CaseRecommended actionCheck
Contract submissionExtract key clauses and signature pagesConfirm page numbers and signatures
Scanned documentsExtract only required upload pagesCheck orientation and clarity
Report sharingExtract summary, charts, or appendixAvoid exposing unrelated pages
Study materialExtract one chapter or exercise setKeep reading order intact

Page Range Syntax

InputMeaningResult
3Extract only page 3One 1-page PDF
1-3Extract pages 1 through 3One 3-page PDF
1,3,5-7Extract pages 1, 3, and 5 through 7One new PDF in selected order

Some workflows allow repeated pages or custom order. For example, 5,1,5 may place page 5 first, page 1 second, and page 5 again at the end. Always open the result before submitting it.

Why Can Actual Page Numbers Differ from Displayed Labels?

PDF viewers may label covers and tables of contents as i, ii, and iii, while the main body starts at page 1. Tools usually use actual PDF page order, where the first physical page is page 1.

  • Preview the document to confirm the target page position.
  • Count covers and table-of-contents pages as actual pages.
  • If you need displayed page 10, confirm whether it is actual page 12 or 13.
  • After export, check the first and last selected pages.

What to Check

  • Viewer page labels may differ from actual PDF page numbers, especially with covers and tables of contents.
  • Confirm the selected page order meets the submission requirement.
  • Use an organize tool if you need to delete, duplicate, or reorder pages manually.
  • After export, check page count, file size, and first-page content.

Does Extraction Change the Original PDF?

A normal extraction workflow creates a new PDF and leaves the original untouched. Rename the output clearly, such as contract-pages-3-5.pdf, and keep the source file for later checks.

Frequently asked questions

Q.Does extracting pages preserve bookmarks and internal links?

Usually not. pdf-lib copies page content streams faithfully, but bookmarks (outlines) and cross-page link annotations live at the document level and don't move with individual pages by default. The extracted PDF keeps its text, images, and page-scoped annotations, but the outline tree is dropped and any link pointing to "page 30 of the original" becomes stale. If you need outlines preserved, use heavier tools (qpdf, pdfcpu) that can rewrite destinations, or extract into an organizer that lets you rebuild the outline manually.

Q.Why does my extracted PDF open blank or fail to open?

Three usual suspects. First, an out-of-range page (you asked for page 21 of a 20-page file); many tools silently produce a zero-page PDF. Second, the source is encrypted or permission-restricted and page copying references resources the reader can't unlock. Third, the page includes large or exotic XObjects (complex forms, embedded 3D) that the copier skipped or truncated. Verify the original opens correctly, confirm your page numbers, and try decrypting or flattening the source first.

Q.Can I mix single pages and ranges like `1,3,5-8,20`?

Yes; most modern extractors accept comma-separated combinations of single pages and ranges. ToolGarden parses in the order you write, deduplicates, and outputs in the order encountered. That means `5,1,3` produces a PDF with pages in 5→1→3 order, which is handy for quick reordering-plus-extraction. What's typically not supported: descending ranges (`8-5`), zero-indexed numbers (PDFs are 1-indexed), negative numbers, and open ranges (`10-`).

Q.I extracted one page but the file size is almost the same as the original; why?

Extraction usually copies referenced resources but doesn't garbage-collect unused ones. If your one page references a font subset shared with the rest of the document, pdf-lib will pull that whole subset over. Same for image resource dictionaries and shared color profiles. To actually shrink the output, run it through a compressor or linearizer (like qpdf --optimize) afterwards. ToolGarden's extractor prioritizes fidelity over size; a second pass with a compressor is the standard follow-up if size matters.

Q.Can I control the page order in the extracted PDF?

It depends on the tool. Range-extractors typically honor input order; writing `10,5,20` yields a PDF with pages in that exact sequence, which doubles as a quick reorder. Split-by-range tools instead force ascending numeric order. If you need arbitrary reordering (moving page 15 between pages 3 and 4, for example), extraction alone gives you the relative order in the new file but can't insert into an existing one; use an organizer/reorder tool (ToolGarden's `/pdf/organize`) for that.