from docx2pdf import convert
inputFile ="./report.docx"
outputFile ="convert.pdf"
file = open(outputFile,'w')
file.close()
convert(inputFile, outputFile)
python word转pdf
最新推荐文章于 2024-04-13 19:10:37 发布
本文介绍了如何使用Python库fromdocx2pdf将.docx文档转换为.pdf格式,通过简单的代码实现文件的转换过程。
1451

被折叠的 条评论
为什么被折叠?



