-
-
Notifications
You must be signed in to change notification settings - Fork 102
Closed as not planned
Labels
3rd-party issuerelated to specific windows stuffs or python packagesrelated to specific windows stuffs or python packages
Description
Hi
I have a similar issue to this one (comtypes 1.1.7):
My code snippet is
import comtypes.client
ppFormatPDF = 32
for fname in ["test1", "test2"]:
in_file = fname + ".pptx"
out_file = fname + ".pdf"
app = comtypes.client.CreateObject('Powerpoint.Application')
ppt = app.Presentations.Open(in_file)
ppt.SaveAs(out_file, FileFormat=ppFormatPDF)
ppt.Close()
app.Quit()
This seems to work OK saving test1.pptx as a PDF but trying to save the next one results in this error:
ppt.SaveAs(out_file, FileFormat=ppFormatPDF)
_ctypes.COMError: (-2147188720, None, ('Presentation (unknown member) : Object does not exist.', 'Microsoft PowerPoint', '', 0, None))
Would appreciate any thoughts you may have - thanks!
Metadata
Metadata
Assignees
Labels
3rd-party issuerelated to specific windows stuffs or python packagesrelated to specific windows stuffs or python packages