PDF比較でできること・できないこと
この記事のポイント
- 文字は比べられる
- 画像は比べられない
- 見た目は比べられない
2つのPDFの違いを比べる(差分チェック) は、2つのPDFの文字の違いを調べるツールです。できることと、できないことを、はっきりさせておきます。
できること
- 2つのPDFの文字を、行ごとに比べる
- 追加された行、削除された行を表示する
- 「変わっていない行も表示する」で、前後の文脈も見られる
- ファイルを外に送らず、ブラウザの中で処理する
できないこと
- 画像・図・写真の違い:文字ではないので、分かりません。
- スキャンしたPDF:文字が入っていないため、比べられません。
- レイアウト・色・フォントの違い:文字の内容だけが対象です。
- 署名・印影の違い:画像なので、分かりません。
- 行数が多すぎるPDF:3,000行までです。
手順
- 「元のPDF(古いほう)を選ぶ」と「新しいPDFを選ぶ」で、2つを選びます。
- 「比べる」を押します。
- 「違いを見る」で、確認します。
文字(テキスト)だけを比べます。画像や図の違いは分かりません。
3,000行を超える場合
ページ数をしぼってから比べます。PDFを分割・抜き出しするツールで、比べたい範囲だけのPDFを作ります。
結果の見方の注意
- 改行の位置が違うと、同じ内容でも、違う行として表示されることがあります。
- 空白や、全角・半角の違いも、差分として出ます。
他の手段が必要な場面
- 画像の差分:目視、または、画像の比較ソフト
- スキャンの比較:OCRで文字にしてから
- 書式の比較:目視
例
資料の改訂版を比べたら、グラフが入れ替わっていたが、このツールでは分からなかった。目視で確認して、気づいた。
つまずきやすい点
- 差分がないのに、見た目が違う:画像やレイアウトの違いかもしれません。
- 差分がありすぎる:レイアウトの変更が原因の場合。
よくある質問
何ページまで比べられますか?
ページ数ではなく、行数で3,000行までです。
まとめ
文字の違いだけが対象です。図や署名は、目視で確認しましょう。
2つのPDFの違いを比べる(差分チェック)を使う(無料)あわせて使えるツール
- PDFから文字を抜き出す:PDFの文字を取り出して、コピーまたは保存できます。
- PDFを結合:複数のPDFを、順番を決めて1つのPDFにまとめます。
- 画像・PDFの文字を読み取る(OCR):画像やスキャンPDFの文字を、文字データにします。
同じツールの、ほかの解説
What PDF Comparison Can and Cannot Do
Key points
- Text can be compared
- Images cannot
- Layout cannot
Compare Two PDFs (Find Differences) is a tool for finding differences in the text of two PDFs. Here is what it can and cannot do.
What it can do
- Compare the text of two PDFs line by line
- Show added and removed lines
- Show the surrounding context with "Also show unchanged lines"
- Process inside the browser without sending files outside
What it cannot do
- Differences in images, figures and photos: they are not text, so it cannot tell.
- Scanned PDFs: they contain no text, so they cannot be compared.
- Differences in layout, colour and font: only the text content is targeted.
- Differences in signatures and seals: they are images, so it cannot tell.
- PDFs with too many lines: up to 3,000 lines.
Steps
- Choose the two with "Choose the original PDF (older)" and "Choose the new PDF".
- Press "Compare".
- Check under "See the differences".
It compares text only. It cannot tell differences in images or figures.
Over 3,000 lines
Narrow the pages before comparing. Use the PDF split or extract tool to make a PDF of only the range you want to compare.
Cautions in reading the result
- If line-break positions differ, the same content may be shown as different lines.
- Differences in blanks and full-width/half-width also appear as differences.
When other means are needed
- Image differences: by eye, or image comparison software
- Comparing scans: turn into text with OCR first
- Comparing formatting: by eye
Example
Comparing a revised version of material, a graph had been swapped, but this tool could not tell. Checked by eye and noticed.
Common stumbling blocks
- No differences, yet it looks different: it may be a difference in images or layout.
- Too many differences: layout changes may be the cause.
Frequently asked questions
How many pages can be compared?
Not by pages but up to 3,000 lines.
Summary
Only text differences are covered. Check figures and signatures by eye.
Use "Compare Two PDFs (Find Differences)" (free)Tools that go well with this
- Extract Text from PDF: Pull the text out of a PDF to copy or save.
- Merge PDFs: Combine several PDF files into one, in the order you choose.
- Read Text from Images and PDFs (OCR): Turn text in images and scanned PDFs into text.