This tool is no longer being developed or maintained. It has been superceded by our commercial GUI applications, DiffPDF and comparepdfcmd. These provide more functionality and are faster on multicore machines.
DiffPDF can compare two PDF files. It offers three comparison modes: Words, Characters, and Appearance.
By default the comparison is of the words on each pair of pages, but comparing character by character is also supported (e.g., for logographic languages). And there's also support for comparing the pages by appearance (for example, if a diagram is changed or if a paragraph is reformatted, or a font changed). It is also possible to compare particular pages or page ranges. For example, if there are two versions of a PDF file, one with pages 1-12 and the other with pages 1-13 because of an extra page having been added as page 4, they can be compared by specifying two page ranges, 1-12 for the first and 1-3, 5-13 for the second. This will make DiffPDF compare pages in the pairs (1, 1), (2, 2), (3, 3), (4, 5), (5, 6), and so on, to (12, 13). Version 1.5.0 added the ability to save a PDF file that shows the pages that differ with their differences highlighted. Version 2.0.0 added support for margin exclusion and improved dock window handling. Version 2.1.0 added support for drag and drop, bug fixes, and French and German translations.
PDF files can be loaded from the GUI (by pressing the File #1 and File #2 buttons, or by dragging and dropping files), or by specifying them on the command line. I use the tool regularly to compare different versions of my books (which are typically 500 or more pages), e.g., comparing a first printing with a second printing, to make sure that only the pages I intended to change have actually been changed.
If you want a command line tool (e.g., for automated testing), use comparepdfcmd instead.
DiffPDF is licensed under the GNU General Public License v 2 open source license.
I no longer provide pre-built binaries for Mac OS X or Windows. Windows users are recommended to use the commercial DiffPDF instead.
To build DiffPDF you will need a good C++ compiler (e.g., GCC), the Qt 4 libraries (Qt 4.8 recommended, although older versions back to 4.4 should also work), and the Poppler library (at least 0.20.1)—all these should be available as standard packages on most Linux and BSD systems. For Mac OS X you'll need to install Xcode for the compiler and then get Qt and Poppler separately. The source is diffpdf-2.1.3.tar.gz (90K; SHA1: 663ecb7666a4b7d6fbd1a37327fd1f895fae69b8). Building follows the standard pattern for Qt 4 applications and is explained in the README; the steps are reproduced here:
tar xvfz diffpdf-XXX.tar.gz
# Unpack the archive file,
diffpdf-XXX.tar.gzcd diffpdf-XXX
# Change to the source directorylrelease diffpdf.pro
# On some systems, run
lrelease-qt4
qmake
# On some systems, run qmake-qt4
make
# Build the program
PATH
CHANGES
file lists the changes for each versionIf you like DiffPDF, you might like to buy one of my books. I also provide training in Python, PySide, and PyQt.
Your Privacy • Copyright © 2006 Qtrac Ltd. All Rights Reserved.