Home › Guides › Why a PDF comparison shows differences that aren't there

Why a PDF comparison shows differences that aren't there

A difference report is evidence, not a verdict. It tells you that two files do not match, which is a much weaker statement than telling you that the document was edited.

Quick answerMost false differences come from the comparison reading a different layer than the one you care about. Moved text, substituted fonts, recompressed images, new metadata and reflowed line breaks all register as changes without a single character being edited. Compare the characters first; if they match, the difference is in the packaging.

Key facts

  • A comparison diffs either the text layer or the rendered page, and the two modes disagree about the same pair of files.
  • Identical words with different line breaks produce a full-page difference in a rendering comparison.
  • Font substitution changes character widths, so every word after the substitution shifts position.
  • Re-encoding an embedded image changes pixel values without changing the picture.
  • Producer strings, creation dates and document identifiers change on every save and belong to the file, not the document.
  • A real edit changes characters; an artefact changes position, paint or packaging.

What a comparison is really comparing

A comparison tool has to choose a layer to work on, and that choice decides what it can report. It can read the text layer, which stores each character with a position on the page. It can render both pages to an image and subtract one from the other. Or it can read the drawing instructions that place lines, images and glyphs. Most tools use one of the first two and then describe the result as though the other did not exist.

A text comparison pulls the strings out of each page, aligns them and reports words that were added, removed or moved. It is good at catching a changed figure or a renamed party, and it is what you want when the question is what the document says. It knows nothing about how a page looks, so a recompressed photograph passes through it silently while a paragraph that reflowed onto an extra line is reported as several blocks moving at once.

A pixel comparison renders both pages at a fixed resolution and subtracts them. It catches everything visible, including everything that is not an edit: a glyph drawn with different hinting, a photograph re-encoded at lower quality, a page shifted down by two points. Once you know which mode produced your report, most of the surprising entries stop being surprising, because each one turns out to be a difference in paint rather than in words.

Why a paragraph can move without a word changing

Line breaks are not stored in a PDF as an author's intention. They are what the producer calculated after measuring each word in the chosen font and fitting as many as the column allows. Change the producer, the font file or the space between words, and the same sentence breaks somewhere else. Nothing about the text has changed; only the arithmetic behind the layout has, and it runs afresh every time the file is written.

A one-line difference moves everything below it. If a paragraph gains a line, every block under it on that page and every later page shifts down. If it loses one, they shift up. A comparison that pairs blocks by position then reports a change on every block it re-measured, even though the characters inside those blocks are untouched and still in the same order. One displaced line can light up a whole document in this way.

Justification is a frequent trigger. A document saved by one program may use word spacing to fill a line where another used tracking, or neither. Widening the spaces by a fraction of a point is enough to re-break the line and send the rest of the page with it. Hyphenation settings do the same, and so does a change to the page margin: the words are fixed, the room available to them is not.

The test is quick, and it costs nothing to repeat. Extract the text from both files and compare it as plain characters, ignoring coordinates entirely. If the strings match, the difference is layout, and you can decide whether the layout matters on its own terms. If they do not match, you have a real text change, and the highlighted boxes are telling the truth about something after all.

Fonts that measure differently

A PDF usually embeds only the characters it uses, not the whole typeface. When the document is opened where those glyphs are unavailable, the replacement font is chosen to look similar, not to measure the same. Every character may be a fraction of a point wider, and a paragraph of forty words can gain or lose a line from that alone. The reader sees the same sentence in a slightly different dress and notices nothing.

Even the same font name is not the same font. Versions differ in kerning pairs and hinting, and the embedding flags decide how a viewer positions each glyph. Two files both set in the same typeface can place the same word half a point apart, which a reader will never see and a coordinate-level diff will report on every line of every page. Printing to PDF flattens this away; editing the text layer can bring it back.

Ligatures and character mapping add a second layer of confusion. A typesetter may store the letters f and i as a single glyph, and whether that returns as one character or two depends on the file's character map. A file with a missing or damaged map extracts as boxes or as the wrong letters, and the comparison faithfully reports an edit that never happened, usually one that looks like a typo you did not make.

None of this means layout is unimportant. If a page has to look identical, a shifted line is a defect even when every word is right. It only means the defect lies in how the document was produced rather than in what it says, and fixing it is a different job from editing the text. Read the report with that distinction in hand and the list of changes becomes much shorter.

Recompression, resampling and colour profiles

Images inside a PDF are compressed, and passing a file through almost any tool re-compresses them. A JPEG re-encoded at a different quality, a photograph downsampled from 300 to 150 pixels per inch, or a colour illustration reduced to a palette all change pixel values while leaving the picture the same to the eye. The bytes differ, the document does not, and no reader would know.

A pixel comparison sees every one of those changes. A single recompressed photograph can light up half a page in the report, and a scanned letterhead can show a halo around each letter after the scanner driver despeckled it. If the changed region is a picture, the first question is not what changed inside the picture but whether the picture was encoded again on the way through.

Colour profiles cause the quieter version of the same problem. The numbers that store a colour mean different things under different profiles, so an identical image can render slightly darker or warmer once a profile is attached or dropped. A comparison that converts both pages into its own working space shows a uniform tint across the whole page, which is a packaging difference and not a document one.

Scanners make this worse by adjusting each page as it goes. Auto-contrast, background removal and automatic rotation are applied per page, so two scans of the same sheet taken on different days are not the same pixels even when nothing on the paper has moved. If the file has been through a scanner twice, expect the image regions to differ and read the text instead.

Differences in the file that are not in the document

Every save writes new values into the file: the producer string, the creation and modification dates, the document identifier and sometimes an XMP packet describing the editing history. None of it appears on the page, and all of it appears in any comparison that includes file properties. A report that lists forty changed properties and one changed word is still a report about one changed word.

Annotations and form fields sit in a grey area. A comment, a highlight, a filled signature field and the appearance stream drawn for it are part of the page as displayed but not part of the text layer. Whether a comparison reports them depends on whether it flattens them first. A tracked-changes export is worse, because insertions and deletions may exist in the text layer while being absent from the printed page, so two tools can disagree about the same file and both be consistent.

Page labels, bookmarks and optional content layers complete the list. A repair or a re-save can rebuild the outline, renumber the labels and drop layer definitions without touching a character. Digital signatures belong here too: saving a signed file usually invalidates the signature, which is a real and important difference that has nothing to do with the words on the page.

Telling a real edit from an artefact

The rule that resolves most cases is short: a real edit changes the characters, an artefact changes where they sit or how they are painted. Everything above is a way of applying that rule to a particular kind of noise, and the sequence below applies it in the order that removes the most doubt per step. It is worth following in order even when you think you already know the answer, because the first two steps are the ones that are easiest to skip.

Work through it and stop as soon as the answer is clear. Do not try to judge a hundred highlighted regions at once. Each step is meant to collapse the report into a shorter list before you look at the next layer, so that by the end you are reviewing a handful of claims rather than a wall of colour.

  1. Run the comparison in text-only mode and read the changed words rather than the highlighted boxes.
  2. Copy the changed phrase out of each file and compare the characters, not the coordinates.
  3. If the characters are identical, switch to a coordinate-tolerant view and check whether the shift is the same on every line; a constant offset means reflow, not editing.
  4. If the characters differ, look at the shape of the difference first: stray boxes, missing letters and swapped accents usually mean a damaged character map rather than a person typing.
  5. Render both pages at the same resolution and in the same colour space before believing any difference in an image region.
  6. Read the file properties of both files; a different producer or a newer modification date explains a whole class of entries on its own.
  7. Write down the differences that survive all of the above and treat only those as the review list.

Once you know which differences are real

A short list of genuine changes is easy to act on. Upload the document, describe each change in plain language and the tool proposes operations against the existing text, which you approve before anything is applied. The charge is $5 per document for up to 10 edits, single-page documents are free and no account is required. If the job is not completed, the payment is refunded.

Two guides cover the editing side in more depth. Replacing words without changing the format is about edits that must leave the surrounding typography alone, and editing a PDF without changing its layout covers the harder case where the replacement is a different length from the original. To start from the comparison instead, the compare two PDFs page takes both files and shows you what moved.

Keep the untouched original until you have compared the result once more. A second pass against the same original file is the cheapest way to confirm that the edit you approved is the only thing that changed, and it costs nothing but the time to run it. If the second report shows the same noise as the first, you have learned which entries in this document are artefacts and can ignore them in future reviews.

Compare two PDFs

Upload two versions of a document and get the list of pages that differ, instead of reading both side by side.

Do it now How this works

Questions people ask

Why does my comparison say every page changed when I only edited one line?

Either the file was re-produced rather than edited, which reflows the text and moves every block, or the comparison is pairing blocks by position. Check the extracted text first: if the characters match apart from your line, the rest of the report is layout noise.

The words are identical but the layout differs. Is that an edit?

Not of the text. Line breaks, word spacing and glyph positions are recalculated by whichever program wrote the file, so the same words can occupy different positions. It matters if the page must look identical, but it is a production difference rather than a content one.

Why does a re-saved PDF compare as completely different from the original?

A save re-compresses images, re-subsets fonts, rewrites the metadata and may rebuild the outline. Every one of those is a real difference in the bytes and none of them is a difference in the document. Compare the text layer to see what actually survived.

Can two files be identical and still compare as different?

Yes. Two saves of the same unchanged document carry different modification times and document identifiers, and some producers rewrite the internal object order. A comparison that includes metadata will always find something to report.

Does a highlighted box mean the text changed?

No. Boxes mark regions where the two pages differ, and text that moved into or out of a region produces a box just as text that was rewritten does. Read the words inside the box before treating it as an edit.

Related guides

Why PDF comparison pages don't line upTwo PDFs can hold the same words and still disagree about where every line sits. Crop boxes, page sizes, rotation and scans explain the offset.
When a PDF comparison loses page orderOne inserted page makes every later page compare against the wrong one. Match pages by content and by printed labels before reading the report.

Published 21 November 2026. Written and maintained by the paidpdf team. Questions: hello@paidpdf.com.