[OS X TeX] OT: Tool for Comparing PDF files ?

Jan Anderssen jan at linguist.umass.edu
Fri Apr 6 18:55:37 CEST 2007


> Does someone know a tool for comparing PDF documents?

A similar question came up on the pdftex mailing list recently and  
Thanh Han The posted a script similar to Michael's.

It uses either gs or pdftoppm to rasterize the pdf and then  
imagemagick's compare to compare the results. I haven't had time yet  
to look at the differences in more detail.

I thought I'd repost it here (see url in the email below) in case  
people are interested.

Cheers,
Jan

Begin forwarded message:

> From: "Thanh Han The" <hanthethanh at gmail.com>
> Date: April 3, 2007 8:00:30 AM EDT
> Cc: pdfTeX list <pdftex at tug.org>
> Subject: Re: [pdftex] pdftex deterministic?
>
> since this has been requested several time, I put the script
> to http://pdftex.sarovar.org/misc/pdfcmp.zip
>
> Please feel free to use/modify/comment/forward.
>
> Regards,
> Thanh
>
> PS to Marcel: if you want to compare two versions of a font,
> the tools t1diff and t1cmpglyphs do a very good job.
>
> On Tue, Apr 03, 2007 at 01:14:56PM +0200, Marcel Korpel wrote:
>> On 01/04/07, Thanh Han The <hanthethanh at gmail.com> wrote:
>>> I have made a script to compare 2 pdfs, which I use to
>>> quickly test whether a new version of pdftex produces
>>> different output from the previous version. The script use
>>> gs or pdftoppm to generate all pages of the pdfs as bitmaps,
>>> then compare them page by page using diff. If they are
>>> different, they are further compared by the 'compare' tool
>>> from image magick. If the difference is larger than a
>>> threshold, an image showing the differences is shown.
>>>
>>> If anyone is interested in the script I will send it.
>>
>> That sounds very interesting, indeed, especially to compare
>> differences between two versions of fonts. Can you send it to me, or
>> provide it online?
>>
>> Thank you!
>>
>> Regards,
>> Marcel
> _______________________________________________
> pdftex mailing list
> pdftex at tug.org
> http://tug.org/mailman/listinfo/pdftex





------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the macostex-archives mailing list