Test cases / pdf

deft pdf compare

Compare two PDFs: text and pixels

1 run on real files, 3 tests on generated files, not shown. 0 failed.

Fixed cases

Generated files, compared with ground truth by tools other than deft.

two real versions of a paperPassed

It must print pages.

deft pdf compare paper.pdf paper-stamped.pdf --json

Input

paper-stamped.pdf 936.3 KB · 14 pages
Page 1Page 2Page 3
paper.pdf 992.5 KB · 14 pages
Page 1Page 2Page 3

Output

No output file. The result is what it printed.

What it printed
{"v":1,"ok":true,"op":"pdf.compare","items":[{"ok":true,"inputs":["paper.pdf","paper-stamped.pdf"],"outputs":[],"facts":{"identical":false,"pages":[14,14],"changes":[{"page":3,"added":["for the outer loop, T16.DRAFT"],"removed":["for the outer loop, T16."],"pixels":0.046180761867036374}]},"warnings":[]}],"elapsed_ms":493}