THPDFUA2RepairReport Record
Per-category repair counters, rollback state, and unresolved findings from PDF/UA-2 structure repair
Declaration
THPDFUA2RepairReport= record
Changed: boolean;
RolledBack: boolean;
LimitExceeded: boolean;
ValidationSucceeded: boolean;
NamespacesRegistered: Integer;
NamespaceDictionariesRebuilt: Integer;
NamespaceReferencesRewritten: Integer;
DuplicateNamespacesRemoved: Integer;
InvalidNamespacesRemoved: Integer;
AttributeNamespacesRepaired: Integer;
AttributeRevisionsRepaired: Integer;
ListsRepaired: Integer;
TablesRepaired: Integer;
TableCellsRepaired: Integer;
RubySequencesRepaired: Integer;
WarichuSequencesRepaired: Integer;
PronunciationHintsRepaired: Integer;
AlternateTextsRepaired: Integer;
LanguageEntriesRepaired: Integer;
HeadingLevelsRepaired: Integer;
ArtifactsTagged: Integer;
UnresolvedAlternateTextCount: Integer;
UnresolvedLanguageCount: Integer;
UnresolvedArtifactCount: Integer;
RemainingErrorCount: Integer;
ObjectsExamined: Integer;
end;
Unit
HPDFDoc
Fields
| Field | Purpose |
|---|---|
Changed | True when at least one repair modified the document |
RolledBack | True when post-repair validation failed and all edits were undone |
LimitExceeded | True when a work or repair cap stopped the pass early |
ValidationSucceeded | True when the repaired structure tree passed validation |
NamespacesRegistered | Namespace dictionary entries added for referenced namespaces |
NamespaceDictionariesRebuilt | Namespaces dictionaries rebuilt from scratch |
NamespaceReferencesRewritten | Structure element NS references rewritten to the registered entries |
DuplicateNamespacesRemoved | Duplicate namespace entries merged away |
InvalidNamespacesRemoved | Malformed namespace entries deleted |
AttributeNamespacesRepaired | Attribute objects whose namespace wiring was fixed |
AttributeRevisionsRepaired | Revision values normalized on attributes and elements |
ListsRepaired | List structures rebuilt to correct list semantics |
TablesRepaired | Table structures rebuilt with proper row and header hierarchies |
TableCellsRepaired | Individual table cells re-tagged or given scopes and spans |
RubySequencesRepaired | Ruby annotation sequences reordered to the required child sequence |
WarichuSequencesRepaired | Warichu sequences reordered to the required child sequence |
PronunciationHintsRepaired | Phoneme pronunciation hints fixed on structure elements |
AlternateTextsRepaired | Missing /Alt values generated or filled from fallback text |
LanguageEntriesRepaired | Missing /Lang entries filled by language inheritance repair |
HeadingLevelsRepaired | Heading levels reassigned so the H1-H6 order is gapless |
ArtifactsTagged | Content pieces marked as artifacts and excluded from the tree |
UnresolvedAlternateTextCount | Elements that still lack alternate text after the pass |
UnresolvedLanguageCount | Elements whose language could not be determined |
UnresolvedArtifactCount | Content pieces that could not be classified as artifacts |
RemainingErrorCount | Validation errors still present after the repair attempt |
ObjectsExamined | Objects visited during the repair pass |
Usage notes
- Fill it by
RepairPDFUA2Structuretogether with itsTHPDFComplianceRepairStatusresult; the counters explain exactly what moved RolledBacktrue means the document was restored; treat the run as a no-op and adjust options before retrying- The
Unresolved*counts tell you where human authoring is still needed, typically for meaningful alternate text