pdfminer.six

Extract text and data from PDF files programmatically.

pipmacoslinuxwindows
Try with needOr install directly
Source

About

PDF parser and analyzer

Commands

pdf2txt.pydumppdf.pypdf2json.py

Examples

extract all text from a PDF file$ pdf2txt.py document.pdf
save extracted text to a file instead of printing$ pdf2txt.py -o output.txt document.pdf
extract text and layout information from PDF$ pdf2txt.py -t xml document.pdf
dump internal PDF structure and objects for analysis$ dumppdf.py document.pdf
convert PDF content to JSON format$ pdf2json.py document.pdf