I am writing a python script and would like to convert a DOCX to PDF. Are there any ways of doing this? Here's my current code:
printer_path = 'C:\\Program Files\\Nitro\\Pro\\12\\NitroPDF.exe'
doc_path = 'Test.docx'
subprocess.call([printer_path, doc_source_path])
Nitro PDF will open and begin converting the file but won't finish. Thank you for any input.
Edit 1: For the subprocess.call to work, I had to make both inputs absolute paths e.g. doc_path = 'C:\Documents\Test.docx'