Re: convert .pdf files to .txt files

2006-06-10 Thread Baiju M
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

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python language problem

2006-06-07 Thread baiju
May be you are looking for weakref module:

http://www.python.org/doc/current/lib/module-weakref.html

--
Baiju M

-- 
http://mail.python.org/mailman/listinfo/python-list