pdftract/crates
jedarden 6477f7703f fix(pdftract-2bsfc): fix stream tests and catalog parser error handling
- Fix stream.rs test cases to use PdfStream::new() correctly (takes PdfDict directly, not wrapped in PdfObject::Dict)
- Fix catalog.rs test cases to use PdfObject::Dict(Box::new(dict)) (API change)
- Update parse_catalog to return Ok(empty_catalog) with STRUCT_MISSING_KEY diagnostic instead of Err when /Pages is missing (per bead acceptance criteria)

All catalog parser tests pass:
- 27 tests including 6 proptests for INV-8 compliance
- PageLabels number tree with mixed roman/arabic styles
- Tagged PDF detection via /MarkInfo
- Optional fields (Outlines, Version, etc.)
- proptest: random PdfObject as /Root never panics

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-17 23:56:10 -04:00
..
pdftract-core fix(pdftract-2bsfc): fix stream tests and catalog parser error handling 2026-05-17 23:56:10 -04:00