pdfgrep

pdfgrep

TLDR

Find lines that match pattern in a PDF

>_ pdfgrep [pattern] [file.pdf]
copy

Include file name and page number for each matched line

>_ pdfgrep --with-filename --page-number [pattern] [file.pdf]
copy

Do a case insensitive search for lines that begin with "foo" and return the first 3 matches

>_ pdfgrep --max-count [3] --ignore-case ['^foo'] [file.pdf]
copy

Find pattern in files with a .pdf extension in the current directory recursively

>_ pdfgrep --recursive [pattern]
copy

Find pattern on files that match a specific glob in the current directory recursively

>_ pdfgrep --recursive --include ['*book.pdf'] [pattern]
copy

Copied to clipboard
free 100$ digital ocean credit