◫

PDF Visual Comparison

Compare two PDF pages and highlight visible pixel differences

—Different pixels
No file selected.

PDF Visual Comparison — what it does

Render one page from each of two PDFs and compare them pixel by pixel, highlighting visible differences with an adjustable threshold and a count of differing pixels. Where a text diff sees only words, this catches what actually changed on the page — a moved logo, a shifted margin, a redrawn chart.

Worked example

Page 1 of a three-page report compared against several second pages at the default threshold of 35; the 'Different pixels' figure is the one the tool displayed.

First pageSecond pageThresholdDifferent pixels
report-3p.pdf p.1report-3p.pdf p.1 (same file)350.00%
report-3p.pdf p.1report-3p.pdf p.2 (one digit differs)350.03%
report-3p.pdf p.1report-3p.pdf p.9 (clamped to p.3)350.03%
report-3p.pdf p.1 (Letter)appendix-2p.pdf p.1 (A4)35 / 1000.49% / 0.37%

Mixed sizes are stretched to a common 704×969 px canvas before comparing, so a Letter page against an A4 page reports differences even where the content matches.

When this tool helps

  • Verifying that a re-exported document is visually identical to the version already approved.
  • Catching a layout shift introduced by a template or font change.
  • Comparing two versions of a design proof before sending it to print.

How to use it

  1. Load the first PDF and choose a page number.
  2. Load the second PDF and choose its page number.
  3. Set the difference threshold.
  4. Compare and review the highlighted differences and pixel count.

Accuracy, limits, and good practice

  • Raise the threshold to ignore trivial anti-aliasing noise; leave it low when you need to catch a one-pixel shift.
  • A zero-difference result is genuinely useful — it is evidence that a re-export or migration changed nothing visible.
  • Rendering differences between machines can produce small discrepancies, so compare files rendered in the same session.

Frequently asked questions

Can it compare whole documents?

One page pair per pass. Step through the pages you care about, or compare the pages most likely to have changed.

Why do identical-looking pages differ slightly?

Font rasterisation and anti-aliasing vary subtly. Increase the threshold so those differences are not reported.

Is this better than comparing text?

It answers a different question. Text comparison finds wording changes; this finds visual and layout changes.

What if I ask for a page number the document does not have?

It is clamped silently: page 9 of a three-page file compares page 3, and 0 or a blank compares page 1. The result panel does not say which page was actually used, so check the page count first.

What happens when the two pages are different sizes?

Both renderings are resized to the larger width and height — here a 704 by 911 px Letter page and a 685 by 969 px A4 page both become 704 by 969 px — so one or both pages are stretched and every edge shifts. Compare pages of the same paper size, or convert one with the page size tool first.

Related tools on this site

Everything above runs inside this page. PDF Visual Comparison needs no account, no upload, and no server round trip — close the tab and nothing is left behind.

PDF 視覺差異比較能做什麼

分別算繪兩份 PDF 的其中一頁並逐像素比較,以可調的差異門檻標示看得見的差異,並統計相異像素數。文字比對只看得到字詞,這裡抓的是頁面上真正改變的東西——商標位移、邊界偏移、圖表重畫。

實際範例

三頁報告的第 1 頁在預設門檻 35 下與幾個不同的第二頁比對;「不同像素」欄就是工具顯示的數字。

第一頁第二頁門檻不同像素
report-3p.pdf 第 1 頁report-3p.pdf 第 1 頁(同一檔)350.00%
report-3p.pdf 第 1 頁report-3p.pdf 第 2 頁(只差一個數字)350.03%
report-3p.pdf 第 1 頁report-3p.pdf 第 9 頁(被限制為第 3 頁)350.03%
report-3p.pdf 第 1 頁(Letter)appendix-2p.pdf 第 1 頁(A4)35 / 1000.49% / 0.37%

尺寸不同時會先拉伸到共同的 704×969 px 畫布再比對,所以 Letter 頁對 A4 頁即使內容相同也會回報差異。

什麼時候用得上

  • 確認重新匯出的文件在視覺上與已核准版本完全相同。
  • 抓出範本或字型更換造成的版面位移。
  • 送印前比較兩版設計打樣。

使用步驟

  1. 載入第一份 PDF 並選定頁碼。
  2. 載入第二份 PDF 並選定頁碼。
  3. 設定差異門檻。
  4. 執行比較,檢視標示的差異與像素數。

精確度、限制與實務建議

  • 調高門檻可忽略抗鋸齒造成的細微雜訊;需要抓一像素位移時則調低。
  • 「零差異」是真正有用的結果——它證明重新匯出或搬遷沒有改變任何可見內容。
  • 不同機器的算繪結果可能有細微出入,建議在同一次操作中比較兩份檔案。

常見問題

可以比較整份文件嗎?

一次比一對頁面。請逐頁比較你在意的部分,或挑最可能變動的頁面。

看起來一樣的頁面為什麼有差異?

字型點陣化與抗鋸齒會有細微差別。調高門檻即可不回報這類差異。

這比文字比對好嗎?

它回答的是不同問題。文字比對找的是用字變動,這裡找的是視覺與版面變動。

填的頁碼超過文件頁數會怎樣?

會被默默限制:三頁檔填第 9 頁,實際比的是第 3 頁;填 0 或留空則比第 1 頁。顯示區不會說明實際拿哪一頁比,所以先確認頁數。

兩頁尺寸不同時會怎樣?

兩張繪製圖都會被調整到較大的寬與高:這裡 704 × 911 px 的 Letter 頁與 685 × 969 px 的 A4 頁都變成 704 × 969 px,於是一頁或兩頁被拉伸,每個邊緣都位移。請比對相同紙張尺寸的頁面,或先以頁面尺寸轉換工具統一其中一份。

本站相關工具

以上步驟全部在這個頁面內完成,PDF 視覺差異比較 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。