Skip to content

Instantly share code, notes, and snippets.

@ortsed
Created October 30, 2015 20:45
Show Gist options
  • Save ortsed/b8480b950369eea310bc to your computer and use it in GitHub Desktop.
Save ortsed/b8480b950369eea310bc to your computer and use it in GitHub Desktop.
PDF to Word Converter
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