摘要:
前面有一篇<Python批量创建word文档(2)- 加图片和表格>的文章,利用这篇文章创建的word文档来批量转PDF文档。代码: 1 ''' 2 #python批量将word文档转换成PDF文件 3 ''' 4 #导入所需库 5 from docx import Document 6 from 阅读全文
posted @ 2020-11-24 12:11
、一叶孤城
阅读(1316)
评论(0)
推荐(0)
摘要:
如题。 代码: ''' #將word文档转换为pdf文件 #用到的库是pywin32 #思路上是调用了windows和office功能 ''' #导入所需库 from win32com.client import Dispatch, constants, gencache #设置源文档位置,即要转换 阅读全文
posted @ 2020-11-24 11:27
、一叶孤城
阅读(1555)
评论(0)
推荐(0)

浙公网安备 33010602011771号