Subject: Re: [bug-diffutils] bug#40018: How to diff PDF files?

From: Eric Deplagne <[email-masked]>
Date: Tue, 10 Mar 2020 22:31:19 +0100

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