본문 바로가기

개발/Python

comtypes를 사용하여 PPT 를 PNG 로 변환

반응형

 

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

 

반응형

자바스크립트를 허용해주세요.
[ 자바스크립트 활성화 방법 ]
from Mohon Aktifkan Javascript!