Skip to main content

Module pdfua

Module pdfua 

Source
Expand description

PDF/UA-1 conformance validation (ISO 14289-1).

A rule engine over the parsed document, mirroring crate::pdfa: each check inspects one aspect and yields zero or more Violations. This covers the high-signal, machine-checkable clauses of PDF/UA-1 (the “Universal Accessibility” conformance):

  • the document is tagged (/MarkInfo /Marked true)
  • a /StructTreeRoot is present and non-empty
  • the catalog declares a /Lang (BCP 47)
  • every /Figure structure element carries /Alt or /ActualText
  • the structure tree contains at least one heading (H / H1H6)
  • every structure role is a standard type or mapped onto one via /RoleMap (no unresolved Other roles)
  • every page carries /StructParents

Everything is best-effort and read-only over ParseLimits-bounded APIs. Annotation /OBJR coverage and table-structure consistency are out of scope (first version).

Structs§

ValidationReport
The outcome of a validation run.
Violation
One conformance violation.

Enums§

Profile
The validation profile.

Functions§

validate
Validate file against PDF/UA-1.