pdfgrep

Search PDF files for text matching regular expressions

brewmacoslinux
Try with needOr install directly
Source

About

Search PDFs for strings matching a regular expression

Commands

pdfgrep

Examples

Search for a simple string in a PDF file$ pdfgrep 'search_term' document.pdf
Search with regular expression and show line numbers$ pdfgrep -n 'pattern[0-9]+' document.pdf
Recursively search all PDFs in a directory$ pdfgrep -r 'keyword' /path/to/pdf/directory/