TabGarden

Guides

How to Extract Pages from a PDF: Ranges, Page Numbers and File Size

Page-range syntax, real cases like sending a few pages or splitting a combined scan, printed vs file page numbers, and measured file-size effects.

Extracting pages means building a new PDF that contains only some pages of an existing one. The original stays as it is. It sounds trivial, and most of the time it is, but three things regularly trip people up: how to write the page list, which page numbers the tool is counting, and why the result is sometimes much larger than expected. This guide covers all three, with measurements we ran on generated test files.

Everything below can be done with our Split PDF tool, which runs in your browser tab and does not upload the file. If you want to know why that matters, see Online file converters and privacy.

Page-range syntax

Most PDF tools and print dialogs accept a list of pages separated by commas, with a hyphen for a run of pages. Split PDF understands four forms:

You can mix them freely: 1, 4-6, 10- takes page 1, pages 4 to 6, and page 10 to the end. Spaces around commas and hyphens are ignored.

Two behaviours are worth knowing because not every program shares them:

A page number of 0, a page past the end, or a backwards range such as 9-4 stops the job with an error that quotes the part it could not use and the valid range, so a mistake does not silently produce the wrong file.

Keep, don't delete

Split PDF has no "delete pages" field. To remove pages, list the ones to keep. To drop page 4 from a 10-page file, type 1-3, 5-10. To drop the first and last page of a 30-page file, type 2-29. Thinking in terms of "what goes into the new file" also makes it harder to remove the wrong page, because you are naming exactly what you will send.

Printed page labels vs positions in the file

This is the most common source of confusion. A PDF has two kinds of page numbers:

Split PDF, like most extraction tools, counts by position. If a document's first four pages are labelled i to iv, the page printed "1" is position 5, so you type 5.

To check which number your viewer is showing, jump to the very first page of the file. If the page box says "i" or "Cover" rather than "1", the file has labels and you should use the position instead. Thumbnail views help too, because they let you count from the top.

What happens to labels after extraction

We built a 24-page test file whose label table says i to iv for the first four pages and 1, 2, 3 and so on after that, then extracted positions 5 to 7 using the same code path as Split PDF (the pdf-lib library, version 1.17.1). We read the labels back with pdf.js, the PDF engine used in Firefox:

In other words, the new file is numbered by its own positions. That is usually what you want for a short extract, but keep it in mind if you cite "page 47" from an extract: the printed number on the page stays, the viewer's number does not. Bookmarks and document title information are not carried over either.

Practical cases

Sending only the pages that are needed

Forms and applications often ask for "the first page of your statement" or "the signature page". Sending the whole document shares more than you need to: account history, other people's names, unrelated pages. Extract just the requested pages, for example 1, 6, and send that file. Open the result before sending to confirm the right pages are in it.

Be aware that a digital signature, if the original had one, does not survive extraction: the new file is a different document. If someone needs to verify a digital signature, send the original.

Splitting a combined scan

Sheet-feed scanners often produce one long PDF from a stack of separate documents. Two approaches work:

If pages came out of the feeder in the wrong order, fix the order in the same step, for example 1, 3, 2, 4-.

Removing blank pages

Duplex scanning of single-sided originals leaves a blank back after every sheet, so the content sits on odd positions. For a 12-page scan that is 1, 3, 5, 7, 9, 11. Split PDF does not detect blank pages automatically, so you list the pages to keep. Two tips:

Pulling a chapter or a section

For a manual where chapter 3 is printed as pages 41 to 58, first find the positions. If the file has 6 pages of unnumbered front matter, the chapter sits at positions 47 to 64. Extract 47-64, then open the result and check its first and last page.

Joining extracts from several files

Extract what you need from each file, then put the pieces together with Merge PDF. If one source is a set of photos instead of a PDF, convert them with Images to PDF first.

File size after extraction

People often expect a 5-page extract of a 20-page file to be a quarter of the size. Sometimes it is, sometimes it is almost the full size, and splitting into single pages can make the total much bigger than the original. The reason is how PDFs store shared resources.

How we measured

We generated three 20-page A4 test PDFs with pdf-lib in Node.js 24, then extracted pages with exactly the same steps Split PDF uses (create a new document, copy the selected pages in one step, save). All inputs are synthetic; no real documents were used. The script and raw numbers are in our research folder (research/extract-pages-from-pdf/, files measure.mjs and sizes.csv).

Results

Text only (original 24,458 bytes, about 23.9 KB):

One image per page (original 8,671,078 bytes, about 8.27 MB):

One shared image (original 947,146 bytes, about 925 KB; the image alone is 939,903 bytes):

What this means in practice

To make an extract smaller, the content itself has to get smaller, for example by recompressing images. Page extraction copies pages as they are and does not change quality.

A quick checklist

  1. Find the pages by position, not printed number. Check page 1 of the file to see whether the viewer uses labels.
  2. Write the list of pages to keep, in the order you want them.
  3. Decide between one combined file and separate files. Prefer one file when pages share a background or logo.
  4. Run the extraction, then open the result and check the first and last page.
  5. If you needed the original's digital signature, bookmarks or form fields, check whether the result still has them, and keep the original.

Frequently asked questions

Does extracting pages reduce quality?

No. Pages are copied as they are. Text stays text and images are not recompressed.

Why is my 2-page extract almost as large as the whole file?

Most likely the pages share a large resource, such as a background image, a scanned letterhead or embedded fonts, and the extract has to include it. In our shared-image test a single page kept 99.4% of the original size.

Why does page 1 in the tool not match page 1 in the document?

The tool counts positions in the file. Covers and roman-numbered front matter push the printed "1" further down. See the section on page labels above.

Can I extract pages from a password-protected PDF?

Not with Split PDF. The library it uses does not open encrypted files. Remove the protection first with the software that set it, if you have the right to.