THPDFUA2RepairReport Record
Per-category repair counters, rollback state and outstanding 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 where at least one repair modified the document |
RolledBack | True where post-repair validation failed and every edit was undone |
LimitExceeded | True where a work or repair cap brought the pass to an early stop |
ValidationSucceeded | True where the repaired structure tree got through validation |
NamespacesRegistered | Namespace dictionary entries that were added for referenced namespaces |
NamespaceDictionariesRebuilt | Namespace dictionaries rebuilt from the ground up |
NamespaceReferencesRewritten | Structure element NS references rewritten to point at the registered entries |
DuplicateNamespacesRemoved | Duplicate namespace entries that were merged away |
InvalidNamespacesRemoved | Malformed namespace entries that were deleted |
AttributeNamespacesRepaired | Attribute objects whose namespace wiring was put right |
AttributeRevisionsRepaired | Revision values normalised on attributes and elements |
ListsRepaired | List structures rebuilt so the list semantics are correct |
TablesRepaired | Table structures rebuilt with a proper row and header hierarchy |
TableCellsRepaired | Individual table cells that were re-tagged or given scopes and spans |
RubySequencesRepaired | Ruby annotation sequences reordered into the required child sequence |
WarichuSequencesRepaired | Warichu sequences reordered into the required child sequence |
PronunciationHintsRepaired | Phoneme pronunciation hints that were fixed on structure elements |
AlternateTextsRepaired | Missing /Alt values that were generated or filled in from fallback text |
LanguageEntriesRepaired | Missing /Lang entries that language inheritance repair filled |
HeadingLevelsRepaired | Heading levels reassigned so that the H1-H6 order runs without gaps |
ArtifactsTagged | Content pieces marked as artifacts and kept out of the tree |
UnresolvedAlternateTextCount | Elements that still go without alternate text after the pass |
UnresolvedLanguageCount | Elements whose language could not be pinned down |
UnresolvedArtifactCount | Content pieces that could not be classed as artifacts |
RemainingErrorCount | Validation errors that were still present after the repair attempt |
ObjectsExamined | Objects that were visited during the repair pass |
Usage notes
- Fill it via
RepairPDFUA2Structuretogether with itsTHPDFComplianceRepairStatusresult; the counters spell out exactly what moved RolledBacktrue means the document was restored; treat the run as a no-op and adjust the options before retrying- The
Unresolved*counts show where human authoring is still needed, typically for meaningful alternate text