convert .pdf files to .txt files

Davor syl_stand at yahoo.es
Wed Jun 14 08:23:41 EDT 2006


Thanks for all you wrote, It will be very usefull to me, at the end I
use that code and the file I introduce is converted to .txt on the
directory where the file is placed, and in documents written in spanish
this do not gives problems on "acentos" in words like "camión" or
"introducción" that was very important to me. Thanks!

import os
  os.system("pdftotext -layout my_pdf_file.pdf")

#This will create 'my_pdf_file.txt' file.




More information about the Python-list mailing list