Article

Overlay or real editing: what actually happens when you “edit” a PDF

Two PDFs can look exactly the same and contain very different things. One was really edited; the other just hides the old text under a box. The difference doesn't show on screen, but it matters as soon as you copy, search, share or redact.

Updated on October 8, 2026

How a PDF stores its text

A PDF isn't a word-processing document. Each page is a list of drawing instructions: “move here, use this font, draw these characters”, “draw this rectangle”, “show this image”. The text you see is the result of those instructions, drawn one after another, in order.

The direct consequence: whatever is drawn last covers whatever was drawn before. A white rectangle placed after a line of text hides it on screen… without removing it from the list of instructions.

Method 1: the overlay, or the white box

This is how most online PDF editors and annotations work: a box the color of the background is added over the old text, then the new text on top of the box. Nothing is removed; everything is added.

So the file holds three stacked layers: the old text, the box, the new text. And each of them stays usable:

It's exactly the mechanism behind the failed redactions that regularly make the news: documents published with passages “blacked out” by a black rectangle, whose text can be recovered with a simple copy-paste. In January 2019, a court filing by Paul Manafort's lawyers revealed information that was supposed to be hidden this way (source).

Method 2: real editing

Really editing a PDF means removing the instructions that draw the old text from the page, then adding the ones that draw the new text. Afterwards, the old text no longer exists in the file: there is nothing to reveal, and a search returns the new value.

It's harder than it sounds, which is why few tools do it:

Glyph uses this method: it removes the original characters (with a “redaction” operation, which actually deletes the content under an area), then reinserts the new text at the exact position of the old one, in the original font or the closest one. The final file is entirely rewritten: the old text doesn't survive in its internal data either.

How to check a PDF yourself

  1. Open the PDF, select the text around the edited or blacked-out area, and paste it into a text editor. If the old text shows up, it's still in the file.
  2. Use search (Ctrl+F or Cmd+F) with a word from the old text.
  3. Open the file in a PDF editor and try moving the boxes: an overlay moves, a real deletion leaves nothing behind.
  4. Look at the document properties: the title, author or keywords sometimes hold information you thought was removed.

A PDF can also keep older versions of itself when it was edited “by appending” (incremental save). Removing them requires rewriting the whole file, which Glyph does. To check everything at once, the redacted PDF checker analyses these points for you.

In short

To edit a PDF this way: edit the text in a PDF. To hide information for good: redact a PDF.