NoUpload

Splitting a PDF: how page ranges work and what the pieces lose

A split keeps page content exactly and drops document-level structure. Extract what you need, then check links, bookmarks and forms.

NoUpload engineering teamLast updated

Key facts

  • Ranges are 1-based, and every item becomes its own file: 1-3, 5, 8-10 produces three PDFs.
  • Page content is copied exactly; bookmarks, form fields, attachments and page labels are document-level and are not carried over.
  • Two or more outputs arrive as a ZIP because browsers allow only one download at a time.

Splitting a PDF answers a simple question — “which pages belong together?” — in two different ways. Either every page becomes its own file, or each range you name becomes one file. Both are page copies, not re-renders, which determines what survives.

The two modes

Every page produces one PDF per page. A 40-page scan becomes 40 files, bundled into a ZIP. This is the right mode for separating a batch of receipts, invoices or signed forms that were scanned together.

Ranges produces one file per range. Type 1-3, 5, 8-10 and you get three files: pages 1–3, page 5, and pages 8–10. This is the right mode for pulling exhibits out of a bundle, or sending someone chapter 4 without the other 300 pages.

Ranges are counted from 1, the way a PDF viewer counts them. The parser also enforces:

  • Each item must be a page or a forward range. 4-9 is valid; 9-4 is rejected.
  • Nothing may point past the last page. 1-400 on a 40-page file fails with the actual page count in the message, rather than silently producing a short file.
  • At least one item is required. An empty box is not “split everything”; choose Every page if that is what you mean.
  • Items are independent. Overlapping ranges are allowed and produce overlapping files; the tool does not merge them or remove duplicates.

Whitespace is ignored, so 1-3,5 and 1-3, 5 behave the same.

What the output looks like

Each range is named from the source file and the pages it contains:

contract.pdf      →  contract-pages-1-3.pdf
                     contract-pages-5.pdf
                     contract-pages-8-10.pdf

A single range downloads as one PDF. Two or more outputs arrive as a ZIP, because browsers will only trigger one download at a time — a dozen save dialogs is not a feature. The ZIP is a normal archive: unzip it or let the browser open it.

Names are not zero-padded, so a 12-page split sorted alphabetically puts -pages-10 before -pages-2. If you are feeding the files into another tool, sort by page number rather than by filename.

What survives, what does not

Page-level content is copied exactly: text stays selectable, images stay byte-identical, vector art and annotations come along. What lives above the page does not.

Feature After splitting Why
Page content, text, images Kept exactly Pages are copied as objects
Annotations on the page Kept They belong to the page
Internal links to a page in the same range Kept The target page exists
Internal links to a page outside the range Dead The target page is gone
Bookmarks / outline Lost Stored in the document catalog
Form fields Not reliable Document-level dictionary
Attachments Lost Document-level
Page labels (i, ii, iii) Lost Document-level numbering
Document metadata (title, author) Not carried over The output is a new document

The dead-link case is the one people notice. A table of contents that pointed to page 57 will point at nothing after you extract pages 1–20. If the extracted part must stand alone, regenerate its contents page.

Deleting pages instead

Splitting is often the long way round to “remove pages 4 and 9”. If the goal is one file with fewer pages, use delete pages: it keeps the rest of the document together in one step, instead of extracting everything you want and merging it back.

The difference matters for document-level features. Neither operation preserves bookmarks, but deletion keeps the original page objects in one document, which is closer to “the same file, minus two pages” than a split followed by a merge.

Splitting does not redact

Removing a page does not remove the information on it from the world — and, more importantly, deleting text inside a page is not redaction unless the underlying content is destroyed. A black rectangle drawn over a name leaves the name selectable underneath.

If the point is to remove sensitive content, use PDF redaction, which removes the text and image data itself. Splitting is about document structure, not privacy. Metadata is the other trap: a split file is a new document, so most metadata disappears, but do not rely on that as a sanitising step.

Practical workflows

Send only the relevant pages. Split with a range, then compress the extract. The recipient gets three pages instead of a 200-page bundle and cannot accidentally read the rest.

OCR only what matters. Splitting a 300-page scan and running OCR on the ten pages you need is far faster than OCRing the whole file, and the text layer is added only where it is useful.

Separate scanned forms. Scan a stack with one form per section, split Every page, then rename each result. This is the fastest way to turn a multi-form scan into individual submissions.

Rebuild in a different order. Split, then reorder or merge the pieces. Splitting is how you get page-level control out of a tool that only accepts whole documents.

Checking the result

  1. Count pages in each output against the range you asked for.
  2. Open the first and last page of each file — boundaries are where off-by-one errors show.
  3. Click one internal link if the document has a contents page.
  4. If a form was involved, click a field and confirm it still works; assume it does not until proven otherwise.

The split runs in a Web Worker with pdf-lib. The file is read from disk and the pieces are written back to disk; nothing is uploaded.

Questions this guide answers

How do I split a PDF into individual pages?

Choose Every page. A 40-page document becomes 40 one-page PDFs, delivered as a ZIP. If you only need a few pages, use Ranges instead so you do not create files you will delete.

Does splitting a PDF remove the text layer?

No. Pages are copied as objects, so text remains selectable and searchable in every piece. Only rasterising tools destroy the text layer.

Can I split a password-protected PDF?

No. The tool cannot decrypt without the key and will not ask you to paste a document password into a web page. Save a decrypted copy in a PDF reader you trust, then split that.

Sources