pdftract/crates/pdftract-cli/src/grep
jedarden f85e5149dd feat(pdftract-91e1i): HTTP fetch sequence implementation
Implement orchestration layer connecting HttpRangeSource to Phase 1.3
xref resolver and Phase 1.4 document model for remote PDF access:

- Document::open_remote() public API for remote PDF loading
- Progressive tail fetch (16 KB → 1 MB) for startxref location
- Xref forward-scan disabled for remote sources (via is_remote check)
- Page-by-page on-demand fetch via HttpRangeSource caching
- Resource lazy load through XrefResolver cache
- HEAD probe with 405 fallback, no Content-Length handling

Acceptance criteria:
 open_remote(url) returns Document with correct page count
 HEAD failure modes (405, no Content-Length, 401) handled
 xref forward-scan disabled for remote (is_remote check)
 Page-by-page on-demand fetch (HttpRangeSource LRU cache)
 INV-8 maintained (all errors return Result)

Files modified:
- crates/pdftract-core/src/document.rs (Document::open_remote, from_source)
- crates/pdftract-core/src/remote.rs (progressive tail fetch)
- crates/pdftract-core/src/lib.rs (re-exports)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-28 13:17:00 -04:00
..
event.rs feat(pdftract-2hqxi): implement indicatif progress bar with watchdog 2026-05-27 20:02:11 -04:00
expand.rs feat(pdftract-3gf5t): implement walkdir folder traversal for grep 2026-05-26 17:42:27 -04:00
highlight.rs feat(pdftract-22q8e): implement highlight writer module foundation 2026-05-26 23:08:03 -04:00
matcher.rs feat(pdftract-ixzbg): implement regex engine wiring for grep subcommand 2026-05-24 06:30:02 -04:00
mod.rs fix(pdftract-25igv): fix emit! macro usage in codespace parser 2026-05-28 07:29:33 -04:00
progress.rs feat(pdftract-2hqxi): implement indicatif progress bar with watchdog 2026-05-27 20:02:11 -04:00
worker.rs feat(pdftract-91e1i): HTTP fetch sequence implementation 2026-05-28 13:17:00 -04:00