
pdf2docx — Python модуль который позволяет конвертировать PDF документы в docx для дальнейшего редактирования.
Установка:
$ pip install pdf2docx
Пример работы:
from pdf2docx import Converter
pdf_file = '/path/to/sample.pdf'
docx_file = 'path/to/sample.docx'
# convert pdf to docx
cv = Converter(pdf_file)
# all pages by default
cv.convert(docx_file)
cv.close()
#soft #code #python #github