pdftract/crates
jedarden d0ea4a7085 feat(pdftract-1ob): implement page_type_string in page_class module
Per bead pdftract-1ob acceptance criteria:

- Add page_type_string function to page_class.rs that implements the
  stable mapping from (PageClass, ocr_succeeded, has_text, has_images)
  to page_type JSON enum values per Phase 5.1.1 spec

- Add PageClass impl with as_type_str() and can_escalate_to_broken_vector()
  methods

- Re-export PageClassification and page_type_string from lib.rs

- Add comprehensive unit tests:
  * test_page_type_string_*: tests for each PageClass variant and override cases
  * test_page_type_string_exhaustive_combinations: validates all 32 combinations
  * test_page_type_enum_schema_set: verifies output equals the 6 schema values
  * test_page_class_as_type_str: tests as_type_str method
  * test_page_class_can_escalate_to_broken_vector: tests escalation eligibility

Closes: pdftract-1ob
2026-05-25 01:36:34 -04:00
..
pdftract-cer-diff docs(pdftract-aawrz): add LICENSE-MIT and LICENSE-APACHE files 2026-05-23 10:36:28 -04:00
pdftract-cli feat(pdftract-5pbkp): implement inspect subcommand with clap parsing and axum server 2026-05-24 17:13:05 -04:00
pdftract-core feat(pdftract-1ob): implement page_type_string in page_class module 2026-05-25 01:36:34 -04:00
pdftract-libpdftract feat(pdftract-3s2i): implement Phase 5.5.2 validation filter 2026-05-24 04:57:17 -04:00
pdftract-py feat(pdftract-2nu0s): implement Python SDK contract conformance 2026-05-24 08:55:11 -04:00