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: Eric Deplagne <Eric <at> Deplagne.name>
To: Peng Yu <pengyu.ut <at> gmail.com>
Cc: 40018 <at> debbugs.gnu.org
Subject: bug#40018: [bug-diffutils] bug#40018: How to diff PDF files?
Date: Tue, 10 Mar 2020 22:31:19 +0100
[Message part 1 (text/plain, inline)]
  Hi

    $ diff -a {1,2}.pdf
    Should show something, it being readable is another story...

  Regards.

On Tue, 10 Mar 2020 16:15:52 -0500, Peng Yu wrote:
> 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

-- 
  Eric Deplagne
[signature.asc (application/pgp-signature, inline)]

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.