comtypes icon indicating copy to clipboard operation
comtypes copied to clipboard

Word SaveAs very slow

Open vmassuchetto opened this issue 7 years ago • 1 comments

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 avatar Apr 20 '18 20:04 vmassuchetto

@vmassuchetto I have a customer with the same issue after upgrading to Windows Server 2019. Which OS are you using?

goermezer avatar Aug 05 '20 16:08 goermezer