convert .pdf files to .txt files
Baiju M
baiju.m.mail at gmail.com
Sat Jun 10 10:02:27 EDT 2006
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