It takes two PDF files as arguments. By default, its only output is its return code, which is 0 if there are no differences and 1 if the two PDFs differ. If given the –output-diff option, it produces a PDF file with visually highlighted differences

Source: vslavik/diff-pdf: A simple tool for visually comparing two PDF files