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)
>
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