【软件推荐——pdf2docx】
pdf2docx
Open source Python library for converting PDF to DOCX.
https://github.com/ArtifexSoftware/pdf2docx
Install
pip install pdf2docx
使用
from pdf2docx import Converterpdf_file = 'D:\my\c4611_sample_explain.pdf'
docx_file = 'D:\my\c4611_sample_explain.docx'# convert pdf to docx
cv = Converter(pdf_file)
cv.convert(docx_file) # all pages by default
cv.close()
效果
左边PDF,右边World