← Guides

Splitting PDF Pages: Page Trees, Ranges and File Size

When splitting a PDF is the right move

Splitting is a selection step, not a conversion step. The question is not “how do I make this file smaller” but “which pages does the recipient actually need.” A supervisor wants chapter three of a thesis, not the full 180-page PDF. An accounting department wants the two invoice pages inside a monthly statement, not the statement. A scanned folder of meeting minutes is one 400-page file that nobody can search, so it should become one file per meeting. A contract can go to a client with the internal pricing schedule removed.

Deciding the other way is just as useful. If the recipient needs to scroll, annotate, print and cross-reference the document as a whole, splitting creates work: several files to rename, a lost reading order, bookmarks that no longer resolve. Splitting earns its keep when the unit of work is a page or a chapter, or when part of a document must not travel with the rest.

The page tree and object reuse

A PDF is a graph of numbered objects, not a sequence of images. The file starts with a catalog, which points at a page tree; the page tree lists page objects; each page points at a content stream (the drawing instructions) and a resource dictionary (fonts, images, colour spaces, annotations). A cross-reference table near the end maps every object number to a byte offset.

catalog
└─ /Pages  (page tree)
   ├─ /Page 1  → /Contents, /Resources (Font F1, Image X4)
   ├─ /Page 2  → /Contents, /Resources (Font F1)
   └─ /Page 3  → /Contents, /Resources (Font F1, Image X4)
+ xref table → byte offsets for every object

The important consequence is that two pages do not own two copies of a font. Both point at the same object. That is why a 300-page report with one typeface is far smaller than 300 separate one-page PDFs, and it is the reason split output can surprise you later.

Extraction is not a screenshot

Copying a page keeps its content stream intact. Text remains text, so it can still be selected, searched, copied into a document and read aloud by a screen reader. Vector rules and charts remain vectors, so they stay sharp at any zoom. An embedded font stays embedded, and a 600 dpi scan stays at 600 dpi.

A screenshot, or a “print to image PDF” workflow, throws all of that away. The page becomes one large bitmap: the text layer disappears, search and selection stop working, file size usually grows, and zooming reveals the resolution of the capture rather than the detail in the original. Printing to PDF is a middle case: it may keep text but re-lays out the page, re-encodes images, drops annotations and rewrites fonts. If the goal is to hand over the same page you are looking at, copy the page object; do not photograph it.

Page range syntax and its traps

Range notation is a tiny language with more edge cases than it looks. Commas separate items; a hyphen means “through”; the list is evaluated in the order written, and duplicates are normally collapsed.

1-3,5,8-10  → pages 1,2,3,5,8,9,10
7            → page 7 only
3-1          → usually read as 1-3
1-3,2-4      → 1,2,3,4 after duplicates are removed

The trap that catches almost everyone is the difference between the physical page index and the number printed on the page. A report with a cover, a table of contents and roman-numeral front matter can print “1” on what the file calls page 7. Off-by-six errors are not a bug in the splitter; they are a mismatch between two numbering systems. Read the page count the tool reports, and if the document has front matter, count from the first physical sheet.

Whitespace is usually harmless, but full-width commas, en dashes and the word “to” are not universal. When a range is rejected, rewrite it with plain ASCII digits, commas and hyphens before assuming the file is broken.

Encryption and permissions

A PDF can carry two different passwords. A user password is required before the document opens at all. An owner password leaves the document readable but restricts printing, copying or editing. Libraries such as pdf-lib can walk the page tree only when the document is not encrypted; they do not decrypt AES-protected content streams, so a file that opens without a prompt can still be rejected because an owner password is present.

The practical route is to open the file in a reader you trust and save an unprotected copy, then split that copy. That is a legitimate workflow for your own documents. It is not a way to bypass permissions on somebody else’s file: if you were not given the right to copy pages, a browser tool does not grant it.

What happens to file size

Split files are frequently larger than people expect. Resources are shared, so copying a page pulls in its fonts, images and colour profiles; splitting 200 pages into 200 files duplicates those shared objects 200 times. Structural overhead also multiplies: every output gets its own header, cross-reference table and trailer, and per-file compression cannot exploit repetition across the whole document the way one large file can.

In the other direction, extracting a small range can look disappointing: one page from a 10 MB scan may still be 2 MB, because the page carries the same embedded image and font subset as the original. A useful rule of thumb is that the first extracted page is expensive and later pages from the same document are cheap. If total size matters, keep related pages together rather than splitting every page.

Troubleshooting a split that fails

  • Encrypted or permission-flagged file — save an unprotected copy first; the error is expected, not a bug.
  • Truncated download — a file that ends mid-object cannot be parsed. Download it again and compare the size with the source.
  • Renamed file — changing a .docx or .jpg extension to .pdf does not create a PDF. Check the first bytes for the %PDF signature.
  • Damaged cross-reference table — some readers repair it silently; an unprotected library may refuse. Re-save the file from a desktop reader, then retry.
  • Browser memory — very large scans on a phone can exhaust the tab. Close other tabs, use a desktop browser, or extract in batches.
  • Unexpected page numbers — compare against the physical page count, not the printed folio.

Once the selection is right, the output is ordinary PDF: it opens in any reader, prints at full quality and keeps its text layer. If you want to check whether a page survived intact, zoom past 400% and try to select a sentence — a rasterized page fails both tests.

Ready to try it? Use the PDF splitter, which runs entirely in your browser. For a related read on what re-encoding does to image quality, see lossy vs lossless image compression.

Try it yourself: open the PDF Splitter →