open doc as pdf in python docx code example
Example: open word document python
from docx import Document
document = Document()
document.save('test.docx')
from docx import Document
document = Document()
document.save('test.docx')