Compare annotated and clean PDF versions
22 May 2026
A reviewer returns a PDF with three comments. The file has changed, but has the wording changed? Make one comparison record for document content and another for review annotations. A changed file hash identifies a different byte sequence, not the nature of the change.
Establish comparable inputs
Keep the clean baseline and annotated copy. Record their file identifiers and match corresponding pages by content if pagination has shifted. Inspect effective page text and any text rendered as images as the scope requires. A plain-text extractor may omit a scanned passage. A visible note icon can also change a pixel comparison even if the paragraph beneath it is identical.
Separately inspect the comments panel or annotation structures. Capture the note type, page, anchor region or short approved passage, and the note or reply identifier. Include an author or timestamp only if it is relevant and permitted. PDF supports annotations as distinct structures alongside page content. Library of Congress PDF format description
Compare the clean copy with the three-comment revision
In the controlled example, the reviewer has added three comments to an otherwise unchanged copy. Suppose one note asks to replace “five days” with “three days”. Compare the actual sentence in both versions. If both still say “five days”, record a proposed edit in a note, not a change to the agreed wording.
| Evidence | Expected classification for this comparison |
|---|---|
| Corresponding paragraph in each file | Wording unchanged, subject to the scope actually examined. |
| Note attached to that paragraph | Added annotation. Include the anchor and the proposal without inserting the proposal into the body record. |
| Other two notes | Catalogue separately, retaining their own page or passage and any parent relationship. |
| Visual change around a note icon | Annotation appearance, unless inspection also finds changed page content. |
If a note has been flattened onto the page, it may no longer exist as an interactive comment object. Flag that separately. Do not declare no review material simply because an annotation parser reports zero objects. Likewise do not infer exactly three underlying PDF objects solely from three visible comments.
Give the next reviewer a reproducible result
Record which versions, readers or extraction methods were used and whether scanned or flattened regions required manual inspection. Keep the three-comment test separate from the synthetic revision observations, which describe their own files and methods.
A release note can now say which passages were unchanged in the comparison, which comments were added and which regions could not be checked. If an editor later accepts the three-day proposal, a further comparison of that new version should record an actual wording change.
Part of the How to compare two PDFs for changes in text and layout guide.
Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).
