RE: Looking Python script to compare two files

2005-11-11 Thread Tim Golden
[david] So if I want to use these tools: antiword,pdf2text, can I pack these tools and python script into a windows EXE file? I know there is open source tool which can pack python script and libs and generate the windows EXE file. I'm not especially qualified to answer this, but I think

Re: Looking Python script to compare two files

2005-11-11 Thread david
Thanks Tim! I will have a try,maybe this weekend and let you know the result. -- http://mail.python.org/mailman/listinfo/python-list

RE: Looking Python script to compare two files

2005-11-10 Thread Tim Golden
[david] I want to compare PDF-PDF files and WORD-WORD files. OK. Well, that's clear enough. It seems that the right way is : First, extract text from PDF file or Word file. Then, use Difflib to compare these text files. When you say it seems that the right way is... I'll assume that this

Re: Looking Python script to compare two files

2005-11-10 Thread David Boddie
Tim Golden wrote: + PDF: David Boddie's pdftools looks like about the only possibility: (ducks as a thousand people jump on him and point out the alternatives) I might as well do that! Here are a couple of alternatives: http://www.sourceforge.net/projects/pdfplayground

Re: Looking Python script to compare two files

2005-11-10 Thread david
Thanks for the quick replies! So if I want to use these tools: antiword,pdf2text, can I pack these tools and python script into a windows EXE file? I know there is open source tool which can pack python script and libs and generate the windows EXE file. Yes, this approach can't handle the

Looking Python script to compare two files

2005-11-09 Thread yys2000
hi: I want to compare two PDF or WORD files. Any Help? thx -- http://mail.python.org/mailman/listinfo/python-list

RE: Looking Python script to compare two files

2005-11-09 Thread Tim Golden
[yys2000] I want to compare two PDF or WORD files. Could you be more precise, please? + Do you only want to compare PDF-PDF or Word-Word? Or do you want to be able to do PDF-Word? + In either case, are you only bothered about the text, or is the formatting significant? + If it's only

Re: Looking Python script to compare two files

2005-11-09 Thread david
Hello Tim: Thanks for your reply! I want to compare PDF-PDF files and WORD-WORD files. It seems that the right way is : First, extract text from PDF file or Word file. Then, use Difflib to compare these text files. Would you please give me some more information about the external diff tools?

Re: Looking Python script to compare two files

2005-11-09 Thread david
Hello Tim: One more thing: There some Python scripts that can extract text from PDF or WORD file? Thx -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking Python script to compare two files

2005-11-09 Thread david
Hello Tim: One more thing: There some Python scripts that can extract text from PDF or WORD file? Thx -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking Python script to compare two files

2005-11-09 Thread david
Hello Tim: One more thing: There some Python scripts that can extract text from PDF or WORD file? Thx -- http://mail.python.org/mailman/listinfo/python-list