© 1999-2048 dssz.net 粤ICP备11031372号
[其它] 批量将ppt转换为pdf的Python代码 只要27行!
说明:这是一个Python脚本,能够批量地将微软Powerpoint文件(.ppt或者.pptx)转换为pdf格式。 使用说明 1、将这个脚本跟PPT文件放置在同一个文件夹下。 2、运行这个脚本。 全部代码 import comtypes.client import os def init_powerpoint(): powerpoint = comtypes.client.CreateObject("Powerpoint.Application") powerpoint.Visible = 1<weixin_38534344> 上传 | 大小:29kb