convert .pdf files to .txt files

vasudevram vasudevram at
Sat Jun 10 18:32:54 CEST 2006

If you don't already have xpdf, you can get it here:

Install it and then try what Baiju said, should work.
I've used it, its good, that's why I say it should work. If any
problems, post here again.

Vasudev Ram
Independent software consultant
Personal site:
PDF conversion tools:

Baiju M wrote:
> Davor wrote:
> > Hi, my name is david.
> > I need to read information from .pdf files and convert to .txt files,
> > and I have to do this on python,
> If you have 'xpdf' installed in your system,
> 'pdftotext' command will be available in your system.
> Now to convert a pdf to text from Python use system call.
> For example:
>   import os
>   os.system("pdftotext -layout my_pdf_file.pdf")
> This will create 'my_pdf_file.txt' file.
> Regards,
> Baiju M

More information about the Python-list mailing list