ICode9

精准搜索请尝试: 精确搜索
  • Python 将 docx 转为 PDF2022-06-24 02:02:02

    安装 pip install docx2pdf 使用 from docx2pdf import convert # doc 文件 需要先转为 docx 文件(一般情况下、直接修改后缀名、不会对原文件有影响) inputFile = '1.docx' # 要转换的文件:已存在 outputFile = '1.pdf' # 要生成的文件:不存在 # 先创建 不存在的 文件 f1 = open

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有