THPDFPDFA4ValidationOptions 记录

THPDFPDFA4ValidationOptions = record
  Profile: THPDFPDFA4Profile;
  MaxObjects: Integer;
  MaxIssues: Integer;
  MaxDecodedBytes: Int64;
  MaxContentTokens: Integer;
  CheckEmbeddedFonts: boolean;
  CheckAnnotationAppearances: boolean;
  CheckOptionalContent: boolean;
  CheckColourSpaces: boolean;
  CheckTransparency: boolean;
  CheckCompositeFonts: boolean;
  CheckMetadataPackets: boolean;
  class function Default: THPDFPDFA4ValidationOptions; static;
end;

Default 选择基于元数据的 profile 推断,启用全部深度验证族,允许 1,000,000 次对象访问和保留 1,024 条发现,并应用 64 MiB 解码数据和 4,000,000 个内容 token 的累计上限

MaxDecodedBytes 覆盖解码后的 ICC profile、XMP 元数据和内容流,MaxContentTokens 覆盖解析出的页面、Form、图像 mask、shading 和批注外观程序

把数值上限设为 0 或更低会恢复默认值,配置过大的值会被钳制到实现的硬性上限

关闭某个检查族不会削弱相互独立的结构、profile、安全、附件、action 或遍历检查

THotPDF.ValidatePDFA4