Skip to main content
PocketToolz

Why PDFs behave the way they do

Why the text will not copy, why the file is 40MB, why editing one is awkward — and what to do about each.

6 min read

PDFs are frustrating in a specific and consistent way: the text will not copy, the file is inexplicably enormous, and editing one means fighting it. All three come from the same design decision, made in 1993 and still holding.

A PDF describes a page, not a document

A word processor file stores meaning — this is a heading, this is a paragraph, this list has four items — and works out the appearance when it opens. A PDF stores the opposite: the finished appearance, with the meaning discarded. Put this glyph at this coordinate, in this font, at this size.

That is why it looks identical everywhere, which was the entire point. Before PDFs, a document mailed to a client routinely arrived reflowed. A PDF has no reflowing to do, because there is no structure left to reflow.

Everything awkward about PDFs follows from that.

Why the text will not copy

There are two different causes, and they need different fixes.

It is a scan

If the PDF came from a scanner or a phone camera, each page is a photograph. There is no text in the file at all — only an image that looks like text. Selecting does nothing because there is nothing to select.

The fix is OCR, which reads the picture and guesses the characters. It is never perfect, and it is a genuinely different operation from anything else here.

It has text, but no words

More often the text is there and comes out mangled — missing spaces, or letters in the wrong order. That is the coordinate model showing through: the file says where each glyph sits, and nothing says where one word ends and the next begins. A space is often just a gap. Copying has to infer word boundaries from distances, and it gets it wrong on justified text, multiple columns and tables especially.

Converting to Word does the same inference more carefully, and gets you something editable. Expect layout to shift — it is reconstructing structure that was thrown away.

Why the file is 40MB

Almost always images, and almost always scans. A scanner producing 300 DPI colour generates roughly 25 million pixels per A4 page. Twenty pages of that is a very large file, whatever it contains.

Rough expectations:

  • Text-only, from a word processor — tens of kilobytes per page.
  • With a few images — a few hundred kilobytes per page.
  • Scanned — 1 to 5MB per page.

So a 40MB text document is unusual and probably has something embedded; a 40MB scan of twenty pages is entirely normal. Compressing works on the images inside, which is why it transforms a scan and does nothing measurable to a text document.

Why editing is awkward

Because there are no paragraphs. Changing a sentence in the middle of one does not push the rest along — every glyph after it has a fixed coordinate, and something has to recompute all of them. Editors do attempt this, with mixed results, especially where the original font is not installed.

The realistic approach: if you own the source document, edit that and export again. If you do not, convert to Word, accept that layout will move, and fix it there.

Things that are easy, despite all this

Operations that treat pages as whole units are simple and lossless, because they do not touch page contents at all:

  • Merging — pages are copied across untouched. Nothing is re-encoded and nothing degrades.
  • Splitting — the same in reverse, and the right answer when a file is too large to email.
  • Reordering, rotating and deleting pages — all page-level.

Worth knowing: merging and splitting lose nothing at all. Compressing does, because it re-encodes the images. Reach for the lossless ones first.

Two things that are not what they seem

Redaction is not a black rectangle

Drawing a black box over text in most PDF tools adds a shape on top. The text is still underneath, still selectable, still recoverable by anyone who copies the page. This has embarrassed governments and law firms repeatedly. Proper redaction removes the underlying content, and if your tool does not say explicitly that it does so, assume it does not.

Password protection comes in two kinds

A password to open the file means real encryption. A password restricting printing or copying is a flag that the file politely asks readers to honour, and most tools will ignore it. Do not treat the second kind as protection.

A note on where this happens

PDFs are disproportionately the documents that matter — contracts, bank statements, medical letters, identity scans — which makes it worth knowing whether a tool uploads them. Everything linked above runs in your browser; the file is read from disk by the page and never transmitted. See are online tools safe for how to check that for yourself, on any site.

Tools for this

Everything below runs in your browser. Nothing is uploaded.