Compare PDFs
See what changed between two versions, page by page.
Updated
Add your files
How to compare PDFs
- 1
Add two PDFs: the first is the old version and the second the new one. Only the first two files are compared.
- 2
Leave Produce a PDF report on for a report you can file beside the text version, or switch it off for the text file alone.
- 3
Press Compare PDFs. The result says how many pages were compared and how many differ, and the report lists each changed page with the lines removed and added.
- Use PDF to text when you want the full text of one file rather than the lines that differ between two.
Text against text, page by page
Both files are opened by the PDF reader in your browser, a protected one with its password, and the text of every page is collected as lines, with a blank line where the gap between two lines is more than 1.8 times the line height. The two texts for each page position are compared whole; if they are the same the page is passed over. Otherwise the lines are matched by their longest common sequence, and what is left over is the change: a line present only in the first file, a line present only in the second.
The text report and the PDF report
A plain text report is always produced, named comparison-<first>-vs-<second>.txt, opening with the two file names and listing each differing page. When nothing differs it says that the text content of the two documents is identical. With Produce a PDF report on, the same text is also laid out as a PDF headed "PDF comparison", in a monospaced font at 9 points with page numbers. The result panel shows the pages compared, the pages differing and a verdict.
Questions about Compare PDFs
Why does it say the documents are identical when they look different?
Because only the text is compared: page 1 of one file against page 1 of the other, as lines of text. A moved picture, a new font, a colour change, a filled form field or a note in the margin does not change the text, so it is not reported. A scanned page has no text at all; run OCR PDF on both files first and compare the searchable copies.
How are the differences shown?
Page by page. A page whose text matches is skipped. On a page that differs, each line found only in the first file is listed with a minus sign and each line found only in the second with a plus sign, the way a code diff reads, so a changed word shows as one line removed and one added. At most 60 such lines are listed per page, with a count of the rest. A page that exists in only one file is reported as only in the first or only in the second document.
What if a page was inserted or deleted?
Pages are matched by position, not by content, so an inserted page shifts every page after it and each of those is reported as changed. The file with more pages decides how many pages are compared, and its extra pages are reported as present in one document only.
Advertisement