I am looking for some python script to compare two files

Miki Tebeka mtebeka at qualcomm.com
Wed Nov 9 02:29:25 EST 2005


Hello david,

> The file can be PDF or Word format. Any help?
If just like to know if they differ you can compare their md5 signature (or
any other digital signature).

If you want a real diff then convert them to text.
* For PDF you can use pdftotext (comes with xpdf) or Acrobat COM object (if
    you're on windows). There are also some commercial pdf2txt programs.
* For word you can use antiword and friends and again the word COM object
    if you're on windows.

See the diffutils package for diffing text files.

HTH.
--
------------------------------------------------------------------------
Miki Tebeka <mtebeka at qualcomm.com>
http://tebeka.bizhat.com
The only difference between children and adults is the price of the toys
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 193 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20051109/71ed47a4/attachment.sig>


More information about the Python-list mailing list