Skip to content

Commit

Permalink
pdf to doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ilanj committed Nov 27, 2022
1 parent 3f3a6ef commit e0e6a89
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ocr/pdf_word/pdf_word.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from pdf2docx import Converter

pdf_file = 'ila.pdf'
docx_file = 'ila.docx'

# convert pdf to docx
cv = Converter(pdf_file)
cv.convert(docx_file) # all pages by default
cv.close()

0 comments on commit e0e6a89

Please sign in to comment.