pdftract/crates/pdftract-core/src/parser
jedarden 9889b96aca fix(bf-3gmkz): implement XrefResolver::resolve by using resolve_with_source
The XrefResolver::resolve method was a stub returning Null, causing
parse_catalog to fail with '/Root is not a dictionary (type: null)'.

Changes:
- Added source: Option<&dyn PdfSource> parameter to parse_catalog
- Uses resolve_with_source when source is Some, otherwise uses cache-only resolve
- Updated all callers (document.rs, extract.rs, CLI registry.rs) to pass source
- Tests continue to pass None and use cached objects

Fixes: bf-3gmkz

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 01:31:57 -04:00
..
lexer feat(pdftract-3s2i): implement Phase 5.5.2 validation filter 2026-05-24 04:57:17 -04:00
object feat(pdftract-522li): implement per-thread cycle detection for object resolution 2026-05-25 12:31:45 -04:00
catalog.rs fix(bf-3gmkz): implement XrefResolver::resolve by using resolve_with_source 2026-05-26 01:31:57 -04:00
diagnostic.rs feat(pdftract-4x0y): implement font binding and text positioning operators 2026-05-24 17:44:34 -04:00
marked_content.rs feat(pdftract-3s2i): implement Phase 5.5.2 validation filter 2026-05-24 04:57:17 -04:00
marked_content_operators.rs feat(pdftract-3s2i): implement Phase 5.5.2 validation filter 2026-05-24 04:57:17 -04:00
marked_content_stack.rs feat(pdftract-3s2i): implement Phase 5.5.2 validation filter 2026-05-24 04:57:17 -04:00
mod.rs feat(pdftract-3s2i): implement Phase 5.5.2 validation filter 2026-05-24 04:57:17 -04:00
objstm.rs feat(pdftract-3s2i): implement Phase 5.5.2 validation filter 2026-05-24 04:57:17 -04:00
ocg.rs feat(pdftract-3s2i): implement Phase 5.5.2 validation filter 2026-05-24 04:57:17 -04:00
outline.rs feat(pdftract-3s2i): implement Phase 5.5.2 validation filter 2026-05-24 04:57:17 -04:00
pages.rs feat(pdftract-3h9xo): implement threads JSON output + schema integration 2026-05-25 13:40:15 -04:00
resources.rs feat(pdftract-3s2i): implement Phase 5.5.2 validation filter 2026-05-24 04:57:17 -04:00
secrets.rs feat(pdftract-3s2i): implement Phase 5.5.2 validation filter 2026-05-24 04:57:17 -04:00
stream.rs fix: resolve compilation errors across codebase 2026-05-25 08:38:04 -04:00
struct_tree.rs feat(pdftract-3s2i): implement Phase 5.5.2 validation filter 2026-05-24 04:57:17 -04:00
xref.rs feat(pdftract-3s2i): implement Phase 5.5.2 validation filter 2026-05-24 04:57:17 -04:00