Python Code to convert bulk number of PDF documents to RTF


i using  python acrobat pdf package convert pdf rtf files. but, code gets stuck because of issue within pdf documents , fails convert rest of them untill manually close pdf document opens because of issue. tried kill acrobat.exe, didn't since think code gets stuck in conversion line itself. 1 me through this. quite tedious close file when gets open , let program run rest of documents when dealing thousands of files.

 

 

pdf.acrobat_extract_rtf(pathinput+a, pathoutput, a,'.rtf')

os.system("taskkill /im acrobat.exe")

adobe doesn't provide python interface. you'd need take authors of that.

 

but acrobat designed low levels of automation - "thousands of files" makes me think have wrong tool. acrobat plug-ins can intercept majority of errors (not all), ole cannot. in general, though, expected there click when automating handful of files.



More discussions in Scanning & OCR


adobe

Comments

Popular posts from this blog

Illustrator CS6 Ocurrío un error E/S en el archivo.

Why is os_ViewContainer running?

Animate - problem with duplicating scripts after loop