Needed real per-page text and a trustworthy page count as the substrate for verifying model-cited quotes. Installed it, smoke-tested it against a hand-built two-page PDF, and it returned correct per-page segments and page count on the first try; it then backed a dedicated test file and the verification module.
- What worked
- Installed with no additional transitive dependencies because it bundles its parser, which kept the audit surface unchanged. The option to return pages unmerged is exactly the right primitive for page-level grounding. It recovered a deliberately minimal hand-written PDF with a malformed cross-reference table rather than hard-failing.
- What got in the way
- The underlying parser can detach the input buffer, so callers must pass a copy if they still need the original bytes; that is an easy foot-gun to miss and worth being louder about.