THPDFUA2RepairOptions Record

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

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 together in the structure tree namespaces
RegisterReferencedNamespacesAdd a Namespace dictionary entry for each NS value that structure elements reference
RepairStandardStructureNamespacesPut right malformed references to the PDF 2.0 standard structure namespace
RepairAttributeNamespacesRepair the namespace wiring on structure attribute objects
RepairAttributeRevisionsNormalise the Revision values of attribute objects and revision-bearing elements
RepairListSemanticsRebuild the List, ListNumber and ListLabel structure of broken lists
RepairTableSemanticsRebuild Table, TR, TH and TD hierarchies with proper scopes and spans
RepairRubyWarichuSequencesBring Ruby and Warichu child sequences back into the required order
RepairPronunciationHintsRepair the phoneme pronunciation hints on structure elements
RepairMissingAlternateTextGenerate /Alt for figures and other elements that want it
RepairLanguageInheritanceFill in missing /Lang entries down the structure hierarchy
RepairHeadingOrderReassign heading levels so that H1-H6 descend without gaps
RepairArtifactTaggingTag content marked as artifacts so that it stays out of the structure tree
AllowDocumentFragmentHeadingStartsAllow documents whose structure tree starts below H1, as document fragments do
RollbackOnValidationFailureUndo each applied repair when post-repair validation still fails
CustomAttributeNamespaceURIOptional URI used whilst rewriting custom attribute namespaces; empty by default
DefaultLanguageLanguage tag that language inheritance repair applies; empty skips the rewrite
FallbackAlternateTextText to use where no better /Alt can be derived; empty leaves the element unresolved
MaxGeneratedAlternateTextCharactersCap on the characters generated for a single /Alt value; the default is 4096
MaxObjectsCap on the objects examined; the default is 1000000
MaxRepairsCap on the individual repairs applied per run; the default is 100000

Usage notes

Related APIs