Re: converting file formats to txt

2006-07-10 Thread Gaurav Agarwal
tks this ws really helpful, i used catdoc, catppt, xls2csv, pdftotext from xdf and ps2txt from ghostview!.. BJörn Lindqvist wrote: > On 4 Jul 2006 08:38:47 -0700, Gaurav Agarwal > <[EMAIL PROTECTED]> wrote: > > Thanks Steven, Actually i wanted a do text processing for my office > > where I can vie

Re: converting file formats to txt

2006-07-06 Thread BJörn Lindqvist
On 4 Jul 2006 08:38:47 -0700, Gaurav Agarwal <[EMAIL PROTECTED]> wrote: > Thanks Steven, Actually i wanted a do text processing for my office > where I can view all files in the system and use the first three to > give a summary of the document. Instead of having somebody actually > entering the su

Re: converting file formats to txt

2006-07-05 Thread Gaurav Agarwal
Hi All, Thanks for the advise. Am trying to play around with InfoCon, part of from Dspace project. It does file conversions. But it is written in java and uses open office plugin. Regards, Gaurav Agarwal BartlebyScrivener wrote: > I suspect you will have to process those formats separately. But

Re: converting file formats to txt

2006-07-04 Thread BartlebyScrivener
I suspect you will have to process those formats separately. But the good news, at least for doc files, is that there is a script in the Python Cookbook 2Ed that does what you want for MS Word docs and another script that does it for Open Office docs. The scripts are 2.26 and 2.27 pages 101-102.

Re: converting file formats to txt

2006-07-04 Thread Juho Schultz
Steven D'Aprano wrote: > On Tue, 04 Jul 2006 06:32:13 -0700, Gaurav Agarwal wrote: > > > Hi, > > > > I wanted a script that can convert any file format (RTF/DOC/HTML/PDF/PS > > etc) to text format. > > PDF is (I believe) a compressed, binary format of PS. Perhaps you should > look at the program pd

Re: converting file formats to txt

2006-07-04 Thread Gaurav Agarwal
Thanks Steven, Actually i wanted a do text processing for my office where I can view all files in the system and use the first three to give a summary of the document. Instead of having somebody actually entering the summary. Seems there is no one code that can act as convertor across formats, i'll

Re: converting file formats to txt

2006-07-04 Thread Steven D'Aprano
On Tue, 04 Jul 2006 06:32:13 -0700, Gaurav Agarwal wrote: > Hi, > > I wanted a script that can convert any file format (RTF/DOC/HTML/PDF/PS > etc) to text format. RTF, HTML and PS are already text format. DOC is a secret, closed proprietary format. It will be a lot of work reverse-engineering i

Re: converting file formats to txt

2006-07-04 Thread Grant Edwards
On 2006-07-04, Gaurav Agarwal <[EMAIL PROTECTED]> wrote: > I wanted a script that can convert any file format (RTF/DOC/HTML/PDF/PS > etc) to text format. And I want to win the lottery. Without having to buy tickets. -- Grant Edwards grante Yow! You can't hurt

Re: converting file formats to txt

2006-07-04 Thread Gaurav Agarwal
Hi, I wanted a script that can convert any file format (RTF/DOC/HTML/PDF/PS etc) to text format. Regards, Gaurav Agarwal Fredrik Lundh wrote: > Marc 'BlackJack' Rintsch wrote: > > > What do you mean by 'fileformats'? A script that automagically converts > > *anything* to text? What about pictu

Re: converting file formats to txt

2006-07-04 Thread Fredrik Lundh
Marc 'BlackJack' Rintsch wrote: > What do you mean by 'fileformats'? A script that automagically converts > *anything* to text? What about pictures? that's a one-and-a-half-liner: import Image, sys; print list(Image.open(sys.argv[1]).getdata()) -- http://mail.python.org/mailman/list

Re: converting file formats to txt

2006-07-03 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Gaurav Agarwal wrote: > Am looking for a python script that can convert fileformats to txt > format. Am unable to find anything in python. Currently the InfoCon > projects looks pretty good to use, but it is return in java. What do you mean by 'fileformats'? A script that