/// EXTRACT
2 credits

Compare PDFs API — see exactly what changed

A page-by-page visual diff with a change ratio, a marked-up PDF showing where it changed, and the added and removed lines.

/// Quick answer

Compare PDFs aligns the two documents by page position and reports, for each page, a change ratio and whether it changed at all, plus the lines added and removed. It returns a marked-up copy of the new document with the changed regions highlighted, so you can see *where* a page changed rather than only that it did. Pages are compared as rendered images, which catches changes that a text diff misses entirely — a moved logo, a different signature block, an altered table rule. A small per-pixel tolerance means re-rendering identical content doesn't register as a change. Documents of different lengths are compared over their common pages, with the extra pages reported as added or removed; pages are matched by position, so an inserted page shifts the pages after it rather than being detected as an insertion.

Try Compare PDFs API — free →Read the docs

Free account. No card required.

How does the Compare PDFs API work?

One HTTP request from any language. Every ASHDOCS endpoint uses the same X-API-Key header.

curl -X POST https://www.ashdocs.com/api/v2/tools/pdf-compare \
  -H "X-API-Key: ash_live_..." \
  -F "old=@v1.pdf" \
  -F "new=@v2.pdf" \
  -F 'options={"include_text":true}'

Common use cases

Frequently asked questions

What does Compare PDFs return?+

For each page, a change ratio and whether it changed, the lines added and removed, and a marked-up copy of the new document with the changed areas highlighted.

Will it catch changes that aren't text?+

Yes. Pages are compared as rendered images, so a moved logo or a different signature block shows up; a small per-pixel tolerance ignores identical content rendered again.

What if the documents have different page counts?+

They're compared over their common pages, and extra pages are reported as added or removed. Pages are matched by position, so an inserted page shifts the pages after it. Each comparison costs 2 credits with a live key.

RELATED TOOLS