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.
-his no-filename; with-e/-fall 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:NorN-Mlists; empty means all pages;2-1= none.- 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.