comtypes
comtypes copied to clipboard
Word SaveAs very slow
Any ideas how to speed up SaveAs to a PDF file on Word?
word = comtypes.client.CreateObject("Word.Application")
word.Visible = False
doc = word.Documents.Open(sys.argv[1], ReadOnly=True)
doc.SaveAs(sys.argv[2], FileFormat=17)
doc.Close(SaveChanges=0)
word.Quit()
This is taking about 15s. It's too much for us.
Thanks.
@vmassuchetto I have a customer with the same issue after upgrading to Windows Server 2019. Which OS are you using?