PDFを比較
2つの版のどこが変わったかを、文字とピクセルの両方で確認します。
このツールはブラウザーの中だけで動きます。ファイルがアップロードされることはなく、そのことはブラウザーのネットワークタブでご自身で確認できます。 ご自分で確かめてください。ブラウザーのネットワークタブを開いて見てください。残りの作業回数を尋ねる小さなリクエストが1つだけ表示されます。ツール名とハッシュだけで、ファイルは決して含まれません。
このツールでできること
This compares two PDFs twice and reports the results separately: a word-level diff of what the documents say, and a page-by-page pixel comparison of what they look like. What you get is an HTML report naming the changes, not a blended similarity score. If the two files turn out to be identical, the report says so in its title rather than leaving you to interpret an empty list.
When a document has come back and you need to know what moved: a contract returned by the other side, a specification revised by a supplier, a design proof against the version you approved, or two copies of a report you are no longer certain are the same file.
仕組み
- Drop both PDFs onto this page. The first is treated as the original and the second as the revision, which is what the labels in the report mean.
- Choose text, appearance or both. Both is the default and costs one render of each document.
- For the appearance pass, set the resolution and the sensitivity - sensitivity is how large a pixel difference has to be before it counts as a change rather than as rendering noise.
- Leave ignore whitespace on so that a reflowed paragraph does not report as a change on every line.
- Press Compare and open the report. It lists the added and removed passages and the percentage of pixels that differ on each page.
A lawyer wants the words and a designer wants the pixels, and one blended percentage would answer neither. The text pass diffs the documents word by word, so a changed sentence reports the words that changed instead of a scatter of letters. The appearance pass renders both documents and compares page one with page one, counting the pixels that differ beyond the tolerance you set.
The text comparison treats each document as a single stream of words, so it tells you what changed rather than which page it changed on. That is deliberate - a paragraph inserted on page two would otherwise make every later page report as different - but it means the appearance pass is where you look when you need location.
The appearance pass compares by page number, which is right for a revision and misleading for an insertion: add a page at the front and everything after it differs from its counterpart. Pages present in only one document are flagged as such, and two documents on different paper sizes are compared over the region they share, with the rest counted as different.
Two renders of genuinely identical pages are not bit-identical, because anti-aliasing is not deterministic to the last channel value, so a comparison with no tolerance reports that noise as change. The default sensitivity of 20 per cent ignores small differences. The report also lists at most 200 individual changes and then says how many it has not listed, rather than truncating quietly.
このツールにできないこと
- The report lists at most 200 individual text changes, and says how many more there were. Wholesale rewrites are better compared by exporting the text and diffing it elsewhere.
- Scanned documents have no text layer, so the text pass finds nothing to compare. Run OCR PDF on both first, or compare by appearance only.
- The appearance pass compares page 1 with page 1 and so on, so an inserted or deleted page makes everything after it report as different.
- The report gives counts and percentages for each page, not a marked-up image showing where on the page the difference falls.
よくある質問
- 「テキスト」と「見た目」はどう違いますか?
- テキストは両方のドキュメントから語を取り出して差分を取るので、数字の変更や削除された条項を、それがどこへ移動していても見つけられます。見た目は両方を描画してピクセルを比べるので、余白のずれ・差し替えられたロゴ・フォントの置き換えなど、語だけでは決して分からないものを見つけます。
- 感度のスライダーは何を変えますか?
- 2つのピクセルがどれだけ違えば変化として数えるかを決めます。描画はチャンネルの値の最後の1まで一致するわけではないので、極端に低くするとアンチエイリアスまで変化として報告されます。既定の20パーセントは妥当な出発点です。わずかなずれを拾いたいときは下げ、意味のない差分でレポートが埋まるときは上げてください。
- スキャンしたドキュメント同士を比較できますか?
- 見た目でならできます。ピクセルの比較はそのためのものですが、同じ紙を2回スキャンすると全体がわずかに違うので、感度は高めにしてください。テキストでは、OCRを通していない限りできません。テキストのレイヤーがなければ、差分を取る対象がありません。
- 最後に何が手に入りますか?
- 保存も印刷も送信もできるHTMLのレポートです。冒頭に要約(同一かどうか、テキストの変更が何件か、何ページが変わったか)があり、続いて追加された箇所と削除された箇所が並び、最後にページごとのピクセルの差の割合が出ます。このサイトがなくても、誰でも開けます。
- 2つのドキュメントはアップロードされますか?
- いいえ。どちらもブラウザーの中のWeb Workerで読み込み、描画し、比較します。50ページ同士の比較が回線に左右されないのは、そのためです。レポートもその場で生成されます。