GNU bug report logs - #40018
How to diff PDF files?

Previous Next

Package: diffutils;

Reported by: Peng Yu <pengyu.ut <at> gmail.com>

Date: Tue, 10 Mar 2020 21:17:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Peng Yu <pengyu.ut <at> gmail.com>
To: 40018 <at> debbugs.gnu.org
Subject: bug#40018: How to diff PDF files?
Date: Tue, 10 Mar 2020 16:15:52 -0500
Hi,

I'd like to diff PDF files.

$ seq 10 | gs -q -P- -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite
-dCompatibilityLevel=1.4 -sstdout=%stderr -sOutputFile=1.pdf -f -
$ pdftk 1.pdf output 2.pdf uncompress
$ diff {1,2}.pdf
Binary files 1.pdf and 2.pdf differ

Since PDF files contains both texts and binaries, just saying that
they are binary files and refusing to show the difference is not very
helpful. Is there a way for me to easily see the differences between
PDF files. Thanks.

-- 
Regards,
Peng




This bug report was last modified 5 years and 98 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.