textract

Extract text from PDFs, images, Word docs, and other file formats

brewmacoslinux
Try with needOr install directly
Source

About

Extract text from various different types of files

Commands

textract

Examples

extract text from a PDF file$ textract document.pdf
extract text from an image and save to file$ textract image.png > output.txt
extract text from a Word document$ textract report.docx
extract text from multiple files at once$ textract file1.pdf file2.docx file3.xlsx
extract text from a PowerPoint presentation$ textract slides.pptx