# It worked for me from pdf2docx import parse pdf_file = "test.pdf" word_file = "test.docx" parse(pdf_file, word_file, start=0, end=None)