Re: [python-win32] Word Application saving to PDF

2019-10-09 Thread Tim Roberts
On Oct 8, 2019, at 9:58 AM, Holland, James via python-win32 wrote: > > I’m trying to open some rtf files to Word and then save as PDFs. > ... > Traceback (most recent call last): > > File "", line 15, in > doc.SaveAs2(output_dir + '/' + 'rtfTest.pdf', FileFormat = wdFormatPDF) >

[python-win32] Word Application saving to PDF

2019-10-08 Thread Holland, James via python-win32
I'm trying to open some rtf files to Word and then save as PDFs. I'm running Windows 10 65 bit -- Word 2016 is installed on my computer. Python 3.6.0 import os,os.path import img2pdf import win32com.client input_dir = "G:/MHOShare/MHO Staff/James Holland/TempDump/CindyTest/RTFtest" output_dir