pywin32模块安装:
下载地址:选择适合自己的文件下载
import win32com
import win32com.client
ppt_root = "c:\\Python27\\ppt\\"
jpg_root = "c:\\Python27\\jpg\\"
def ppt2png(pptFileName):
powerpoint = win32com.client.Dispatch('PowerPoint.Application')
powerpoint.Visible = True
ppt_path = ppt_root + pptFileName
ppt = powerpoint.Presen