local/tools
pdf / Python, bundled / v1.0.2

PDF Diff

Compare two PDFs page by page with visual pixel-diff overlays and a text diff.

Install

  • install
    irm https://raw.githubusercontent.com/chayprabs/localtools/main/pdf-diff/install.ps1 | iex
  • update
    localtools-pdf-diff update
  • remove
    localtools-pdf-diff uninstall

Opens at http://127.0.0.1:47103 in your browser. Run localtools-pdf-diff --help for the command line. Set LOCALTOOLS_NO_OPEN=1 to install without opening it.

Direct download

PlatformFileSize
Linux x64pdf-diff-1.0.2-linux-x64.zip41.2 MB
macOS Apple Siliconpdf-diff-1.0.2-macos-arm64.zip28.4 MB
macOS Intelpdf-diff-1.0.2-macos-x64.zip28.9 MB
Windows x64pdf-diff-1.0.2-windows-x64.zip24.0 MB

SHA-256 checksums are in the release notes; the install scripts verify them for you.

See it

How to use

  1. Choose PDF A (the original) and PDF B (the revised version). Enter a password only if a PDF is encrypted.
  2. Pick a mode: Visual compares rendered pixels, Text compares words in reading order, Structure compares metadata, fonts, annotations, form fields, bookmarks and attachments.
  3. For Visual, set the resolution and how much colour difference to ignore; keep Ignore anti-aliasing on to skip edge noise and 1-pixel shifts.
  4. Press Compare, then open any page pair from the list. Switch between Side by side, Diff and Slider, and jump with Prev/Next change.
  5. Download the highlighted report PDF, a ZIP of PNGs of the changed pages, or the JSON summary.

FAQ

What if pages were inserted or removed?

When the page counts differ, pages are paired by content (word overlap, or thumbnails for scanned pages), so the extra pages show up as inserted or deleted and the rest still line up.

Does it work on scanned PDFs?

Visual mode does: it compares the page images. Text mode needs a text layer, and there is no OCR.

Can I use it in scripts or CI?

Yes. localtools-pdf-diff a.pdf b.pdf --mode text --json prints a JSON summary; the exit code is 0 when the PDFs match, 1 when they differ and 2 on error. --report and --png-zip write the exports.

What are the limits?

64 MiB and 2,000 pages per PDF, 100 megapixels rendered per PDF per comparison (about 105 Letter pages at 100 DPI), 120 seconds per comparison and two comparisons at a time. Each comparison runs in a worker process that is killed when it runs too long.

Are my files uploaded anywhere?

No. The tool runs on your computer and only talks to your own browser on 127.0.0.1; nothing is sent over the network.