반응형
comtypes 설치
pip install comtypes
PPT to PNG
from comtypes import client
ppt = client.CreateObject('Powerpoint.Application')
ppt.Presentations.Open(pptPath)
ppt.ActivePresentation.Export(pptPath, 'PNG')
ppt.ActivePresentation.Close()
ppt.Quit()
반응형