Skip to main content

Crate pdfq

Crate pdfq 

Source
Expand description

pdfq library: fast, parallel PDF search with a pdfgrep-compatible CLI (backs the binary).

Modulesยง

cache
On-disk page-text cache (--cache), keyed by SHA-256 of the file bytes.
cli
CLI parsing. -h is no-filename; with -e/-f all positionals are files.
engine
Regex engines. PatternList tries patterns in order, not earliest-match.
output
Output: prefixes, match highlighting, context lines (from pdfgrep).
pagerange
--page-range: N or N-M lists; empty means all pages; 2-1 = none.
pdf
PDF open/decrypt/extract via pdf-extract; strips its leading newlines to match poppler.
search
Per-document search: Lines / CountOnly (-c,-p) / Presence (-q,-l,-L).
walk
Directory walk with globs; sorted for determinism; -r skips symlinks, -R follows.