pdfgrep
Search text in PDF files. tldr-pages
On several platforms
Several platforms
Find lines that match pattern in a PDF
pdfgrep pattern file.pdfIdentifyInclude file name and page number for each matched line
pdfgrep --with-filename --page-number pattern file.pdfIdentifyDo a case-insensitive search for lines that begin with file_name and return the first 3 matches
pdfgrep --max-count 3 --ignore-case '^file_name' file.pdfIdentifyFind pattern in files with a .pdf extension in the current directory recursively
pdfgrep --recursive patternIdentifyFind pattern on files that match a specific glob in the current directory recursively
pdfgrep --recursive --include '*book.pdf' patternIdentify