27146
Привет! — Делюсь опытом, пишу на Python и других языках — Создаю ботов и сайты — Парсинг, машинное обучение, big data, щупаю pentesting YouTube: https://www.youtube.com/c/pythontoday Чат: @python2day_chat Сотрудничество: @web_runner
🔥 Полезные библиотеки Python
pdf2docx — Python модуль который позволяет конвертировать PDF документы в docx для дальнейшего редактирования.
Установка:
$ pip install pdf2docxПример работы:
from pdf2docx import Converter⚙️ GitHub/Инструкция
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()