2021-12-11利用pdf2docx实现PDF转化

from pdf2docx import Converter
def pdfConverter(pdf,word):
    cv = Converter(pdf)
    cv.convert(word)
    cv.close()
if __name__ == '__main__':
    pdf = r'E:\*\.pdf'
    word = r'E:\*\demo.docx'
    pdfConverter(pdf,word)

你可能感兴趣的:(2021-12-11利用pdf2docx实现PDF转化)