Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Converting Doc to PDF
import subprocess
subprocess.check_call(
[‘/usr/bin/python3’, ‘/usr/bin/unoconv’, ‘-f’, ‘pdf’, ‘-o’, pdffilename, ‘-d’, ‘document’,
newfilename])
except subprocess.CalledProcessError as e:
print(‘CalledProcessError’, e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment