Skip to content
Kevin edited this page May 6, 2024 · 1 revision

Welcome to the diff-pdf wiki!

Use

The man page and --help option give the same basic use information.

diff-pdf [-h] [-v] [-s] [-m] [-g] [--output-diff <str>] [--channel-tolerance <num>] [--dpi <num>] [--view] file1.pdf file2.pdf

Command line options

-h, --help show help -v, --verbose be verbose

  • Will output which pages differ and a total at the end. E.g. page 0 differs page 1 differs page 2 differs page 3 differs 4 of 4 pages differ.

    -s, --skip-identical only output pages with differences -m, --mark-differences additionally mark differences on left side

  • Adds a thin red bar on the output file on the far left edge of the page -g, --grayscale only differences will be in color, unchanged parts will show as gray

Make a PDF that shows the diff

--output-diff= output differences to given PDF file

  • Note str=filename.
  • It will show the first PDF overlaying a faint image of the second.
  • Thumbnail view looks like a thumbnail of the page and does NOT have a red line like the view option

Mystery function

--channel-tolerance= consider channel values to be equal if within specified tolerance.

Change the resolution used for comparison

--dpi= rasterization resolution (default: 300 dpi) ##View the diff --view view the differences in a window

  • Note: the thumbnails will show the differences as a red line
  • Uses it own internal viewer, not the system default