Python module for converting PDF to text

Try PDFMiner. It can extract text from PDF files as HTML, SGML or “Tagged PDF” format.

The Tagged PDF format seems to be the cleanest, and stripping out the XML tags leaves just the bare text.

A Python 3 version is available under:

Leave a Comment