PDF转word python程序

# pip install pdf2docx #安装依赖库
from pdf2docx import Converter
 
pdf_file = r'C:\Users\Administrator\Desktop\新建文件夹\mednine.pdf'
docx_file = r'C:\Users\Administrator\Desktop\Python教程\02.docx'
 
# convert pdf to docx
cv = Converter(pdf_file)
cv.convert(docx_file, start=0, end=None)
cv.close()

https://www.jb51.net/article/210757.htm

上一篇:Python 读取.txt、.data、.doc和.docx文档的部分内容


下一篇:Word自定义样式