r/pythontips • • Nov 14 '21

Python3_Specific Convert PDF to DOCX using Python

Learn how to convert PDF to docx and vice versa in a few lines of code using Python:
https://pyshark.com/convert-pdf-to-docx-and-docx-to-pdf-using-python/

26 Upvotes

3 comments sorted by

13

u/WearyConversation Nov 14 '21

Rather than using two packages as per the article (one of which requires MS Word), rather just use pandoc. That's what it's for.

1

u/misha_sv Nov 15 '21

Didn’t know about pandoc, but just looked into it, seems like a great solution as well! Thank you!