converting file formats to txt

Gaurav Agarwal gaurav.agarwal1904 at gmail.com
Tue Jul 4 09:32:13 EDT 2006


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 pictures?
>
> that's a one-and-a-half-liner:
>
>     import Image, sys; print list(Image.open(sys.argv[1]).getdata())
> 
> </F>




More information about the Python-list mailing list