Created
October 30, 2015 20:45
-
-
Save ortsed/b8480b950369eea310bc to your computer and use it in GitHub Desktop.
PDF to Word Converter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import subprocess | |
for top, dirs, files in os.walk('/my/pdf/folder'): | |
for filename in files: | |
if filename.endswith('.pdf'): | |
abspath = os.path.join(top, filename) | |
subprocess.call('lowriter --invisible --convert-to doc "{}"' | |
.format(abspath), shell=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment