THPDFUA2RepairOptions Record

Per-repair switches, fallback content, and work limits for PDF/UA-2 structure tree repair

Declaration

THPDFUA2RepairOptions= record
  NormalizeDuplicateNamespaces: boolean;
  RegisterReferencedNamespaces: boolean;
  RepairStandardStructureNamespaces: boolean;
  RepairAttributeNamespaces: boolean;
  RepairAttributeRevisions: boolean;
  RepairListSemantics: boolean;
  RepairTableSemantics: boolean;
  RepairRubyWarichuSequences: boolean;
  RepairPronunciationHints: boolean;
  RepairMissingAlternateText: boolean;
  RepairLanguageInheritance: boolean;
  RepairHeadingOrder: boolean;
  RepairArtifactTagging: boolean;
  AllowDocumentFragmentHeadingStarts: boolean;
  RollbackOnValidationFailure: boolean;
  CustomAttributeNamespaceURI: AnsiString;
  DefaultLanguage: AnsiString;
  FallbackAlternateText: AnsiString;
  MaxGeneratedAlternateTextCharacters: Integer;
  MaxObjects: Integer;
  MaxRepairs: Integer;
  class function Default: THPDFUA2RepairOptions; static;
end;

Unit

HPDFDoc

Fields

FieldPurpose
NormalizeDuplicateNamespacesMerge duplicate namespace entries in the structure tree namespaces
RegisterReferencedNamespacesAdd a Namespace dictionary entry for every NS value referenced by structure elements
RepairStandardStructureNamespacesFix malformed references to the PDF 2.0 standard structure namespace
RepairAttributeNamespacesRepair namespace wiring of structure attribute objects
RepairAttributeRevisionsNormalize Revision values of attribute objects and revision-bearing elements
RepairListSemanticsRebuild List, ListNumber, and ListLabel structure for broken lists
RepairTableSemanticsRebuild Table, TR, TH, and TD hierarchies with proper scopes and spans
RepairRubyWarichuSequencesRestore Ruby and Warichu child sequences to the required order
RepairPronunciationHintsRepair phoneme pronunciation hints on structure elements
RepairMissingAlternateTextGenerate /Alt for figures and other elements that need it
RepairLanguageInheritanceFill missing /Lang entries down the structure hierarchy
RepairHeadingOrderReassign heading levels so H1-H6 descend without gaps
RepairArtifactTaggingTag content marked as artifacts so it is excluded from the structure tree
AllowDocumentFragmentHeadingStartsPermit documents whose structure tree starts below H1, as document fragments do
RollbackOnValidationFailureUndo every applied repair when post-repair validation still fails
CustomAttributeNamespaceURIOptional URI used when rewriting custom attribute namespaces; empty by default
DefaultLanguageLanguage tag applied by language inheritance repair; empty skips the rewrite
FallbackAlternateTextText used when no better /Alt can be derived; empty leaves the element unresolved
MaxGeneratedAlternateTextCharactersCap on characters generated for one /Alt value; the default is 4096
MaxObjectsCap on objects examined; the default is 1000000
MaxRepairsCap on individual repairs applied per run; the default is 100000

Usage notes

Related APIs