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

To reply to this bug, email your comments to 40018 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-diffutils <at> gnu.org:
bug#40018; Package diffutils. (Tue, 10 Mar 2020 21:17:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Peng Yu <pengyu.ut <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-diffutils <at> gnu.org. (Tue, 10 Mar 2020 21:17:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Peng Yu <pengyu.ut <at> gmail.com>
To: bug-diffutils <bug-diffutils <at> gnu.org>
Subject: 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




Information forwarded to bug-diffutils <at> gnu.org:
bug#40018; Package diffutils. (Tue, 10 Mar 2020 21:32:02 GMT) Full text and rfc822 format available.

Message #8 received at 40018 <at> debbugs.gnu.org (full text, mbox):

From: Eric Deplagne <Eric <at> Deplagne.name>
To: Peng Yu <pengyu.ut <at> gmail.com>
Cc: 40018 <at> debbugs.gnu.org
Subject: Re: [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 4 years and 45 days ago.

Previous Next


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