THPDFPDFA4RepairOptions Record

THPDFPDFA4RepairOptions = record
  Profile: THPDFPDFA4Profile;
  RepairHeaderVersion: boolean;
  RepairTrailerIdentifier: boolean;
  RepairMetadataStreams: boolean;
  RepairMetadataDictionaries: boolean;
  RemoveForbiddenCatalogEntries: boolean;
  RemovePresentationEntries: boolean;
  RemoveDocumentInformationDictionary: boolean;
  RollbackOnErrorRegression: boolean;
  RequireFullConformance: boolean;
  MaxObjects: Integer;
  MaxRepairs: Integer;
  MaxIssues: Integer;
  MaxDecodedBytes: Int64;
  MaxContentTokens: Integer;
  class function Default: THPDFPDFA4RepairOptions; static;
end;

Default selects metadata-driven profile inference, enables the pixel-preserving repair families, rolls back error regressions, permits a safe partial commit, and leaves trailer Info removal disabled

The default hard budgets allow 1,000,000 object visits, 100,000 mutations, 1,024 retained validation issues, 64 MiB cumulative decoded data, and 4,000,000 validation content tokens

FieldPurpose
ProfileSelects automatic metadata inference or an explicit base, engineering, or associated-file profile
RepairHeaderVersionNormalises the loaded document header to PDF 2.0
RepairTrailerIdentifierCreates a missing trailer ID pair without replacing an existing identifier
RepairMetadataStreamsCreates missing document metadata and normalises safe UTF-8 XMP identification properties
RepairMetadataDictionariesNormalises metadata stream Type and Subtype entries
RemoveForbiddenCatalogEntriesRemoves Catalog Requirements and NeedsRendering
RemovePresentationEntriesRemoves alternate-presentation name-tree entries and page PresSteps
RemoveDocumentInformationDictionaryOpts into removing the trailer Info dictionary
RollbackOnErrorRegressionRejects the transaction when post-repair validation introduces additional errors
RequireFullConformanceRejects the transaction when any PDF/A-4 validation error remains
MaxObjectsBounds object-graph traversal
MaxRepairsBounds the number of accepted mutations
MaxIssuesBounds retained pre-repair and post-repair diagnostics
MaxDecodedBytesBounds cumulative decoded XMP and validation data
MaxContentTokensBounds post-repair content validation work without enabling content rewriting

THotPDF.RepairPDFA4