THPDFArchivalPreservationOptions Record

Enterprise edition: This API belongs to HotPDF Enterprise (HotPDFEnt / Lib\Enterprise); lower editions omit it or raise EHPDFEnterpriseRequired.

Unit: HPDFArchivalConversion

Configure bounded text and vector preservation for base PDF/A-4 conversion

THPDFArchivalPreservationOptions = record
  Limits: THPDFArchivalConversionOptions;
  SynthesizeMissingAppearances: Boolean;
  RemoveEmbeddedFiles: Boolean;
  AllowSignatureInvalidation: Boolean;
  AddOCRToImagePages: Boolean;
  OCREngine: IHPDFOCREngine;
  OCROptions: THPDFOCRTextLayerOptions;
  MaxLossEntries: Integer;
  MaxTextCodeUnits: Integer;
  MaxContentTokens: Integer;
  SynthesisFontAlias: AnsiString;
  SynthesisFontBytes: TBytes;
  class function Default: THPDFArchivalPreservationOptions; static;
end;
MemberDefault and meaning
LimitsExisting archival defaults for pages, objects, staged bytes, stream work, cancellation, and checkpoints; raster pixel budgets apply to optional OCR recognition
SynthesizeMissingAppearancesTrue, permit compatible native markup or field appearance generation; unsupported or mismatched generation rejects publication
RemoveEmbeddedFilesFalse, reject attached files unless their removal is explicitly enabled
AllowSignatureInvalidationFalse, reject signature fields unless invalidation and removal are explicitly enabled
AddOCRToImagePagesFalse, optionally recognize pages without extractable text and append an invisible text layer
OCREngineNil, use built-in bounded ASCII OCR; an application engine can provide broader recognition coverage
OCROptionsNative OCR defaults with skip-pages-with-text enabled and a new optional-content group disabled; the converter also retains existing OCR layers and applies archival limits
MaxLossEntries1,024, also bounds native repair and validation report entries
MaxTextCodeUnits1,048,576, bounds extracted source and output text and expected synthesized appearance text
MaxContentTokens4,000,000 per native validation pass
SynthesisFontAliasEmpty, no supplied synthesis font; set it to the default-resource name a missing appearance's /DA asks for, and the converter binds SynthesisFontBytes there before flattening
SynthesisFontBytesEmpty, no supplied synthesis font; a complete TrueType program with TrueType outlines that permits embedding, bound as a simple WinAnsi font under SynthesisFontAlias; both fields must be supplied together, and an alias already present in AcroForm /DR is refused rather than overridden

Initialize the record with Default; zero-initialized budgets are invalid

See the preservation profile for supported fonts and colors, appearance rules, explicit losses, cumulative stream-work budgets, publication guarantees, and validation limits