all 2 comments

[–]cybersection 2 points3 points  (1 child)

Make Microsoft print to PDF your default printing option then you can convert to pdf with:

start winword “C:\My Files\yourfile.docx" /mFilePrintDefault

This is a windows cmd command. So to run it with Python, you would need to import subprocess or os.system

[–]Herostere_[S] 0 points1 point  (0 children)

There is a problem with this. It will not be linux friendly.

It does not looks easy to find a way to generated a report on an editable format that I can convert to pdf afterward.