THPDFCABINetworkTimestampOptionsV1 记录

企业版:此 API 属于 HotPDF Enterprise(HotPDFEnt / Lib\Enterprise);更低版本不含它,调用时抛出 EHPDFEnterpriseRequired

带版本号的选项记录,对应 C 结构体 hpdf_network_timestamp_options_v1,用于配置显式的内置 RFC 3161 HTTP/HTTPS 时间戳 transport 实例

THPDFCABINetworkTimestampOptionsV1 = record
  StructSize, ABIVersion: UInt32;
  Flags, MaxResponseBytes: UInt64;
  TimeoutMS, MaxRedirects: UInt32;
  URL: PAnsiChar;
  URLLength: NativeUInt;
  UserAgent: PAnsiChar;
  UserAgentLength: NativeUInt;
end;

声明位于 HPDFCAPI(Windows)与 HPDFHeadlessCAPI(POSIX Linux),与 hotpdf_abi.h 中的 hpdf_network_timestamp_options_v1 一一对应(32 位目标上 48 字节,64 位目标上 64 字节)

把它传给 hpdf_network_timestamp_transport_create_v1,用 hpdf_network_timestamp_transport_v1 执行请求,再经 hpdf_network_timestamp_transport_destroy 释放