【发布时间】:2020-08-14 18:07:59
【问题描述】:
我想通过pptx python将ppt幻灯片导出为png格式图片。
我已经完成了这个解决方案using win32com,但在运行win32com.client.Dispatch("PowerPoint.Application") 时遇到com_error: (-2147221005, 'Invalid class string', None, None) 错误
我也尝试过使用pptx_tools.utils.save_pptx_as_png,但它询问的是Comptype module needed to save PNGs.,而我在Python 中找不到任何comptype 模块。我已经安装了comtype 模块,但是它在导入时抛出了一个语法错误。
请告诉我任何将 pptx 幻灯片导出为图像的有效方法
【问题讨论】:
标签: python python-pptx