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
| Field | Purpose |
|---|---|
Profile | Selects automatic metadata inference or an explicit base, engineering, or associated-file profile |
RepairHeaderVersion | Normalises the loaded document header to PDF 2.0 |
RepairTrailerIdentifier | Creates a missing trailer ID pair without replacing an existing identifier |
RepairMetadataStreams | Creates missing document metadata and normalises safe UTF-8 XMP identification properties |
RepairMetadataDictionaries | Normalises metadata stream Type and Subtype entries |
RemoveForbiddenCatalogEntries | Removes Catalog Requirements and NeedsRendering |
RemovePresentationEntries | Removes alternate-presentation name-tree entries and page PresSteps |
RemoveDocumentInformationDictionary | Opts into removing the trailer Info dictionary |
RollbackOnErrorRegression | Rejects the transaction when post-repair validation introduces additional errors |
RequireFullConformance | Rejects the transaction when any PDF/A-4 validation error remains |
MaxObjects | Bounds object-graph traversal |
MaxRepairs | Bounds the number of accepted mutations |
MaxIssues | Bounds retained pre-repair and post-repair diagnostics |
MaxDecodedBytes | Bounds cumulative decoded XMP and validation data |
MaxContentTokens | Bounds post-repair content validation work without enabling content rewriting |