Python Code to convert bulk number of PDF documents to RTF
I was using python acrobat pdf package to convert PDF to RTF files. But, sometimes the code gets stuck because of some issue within the pdf documents and fails to convert rest of them untill I manually close the PDF document that opens because of the issue. I tried to kill acrobat.exe, but it didn't help since I think the code gets stuck in the conversion line itself. Could some one help me get through this. It is quite tedious to close a file when it gets open and let the program run for rest of the documents when you are dealing with thousands of files.
PDF.acrobat_extract_rtf(pathInput+a, pathOutput, a,'.rtf')
os.system("taskkill /im Acrobat.exe")
