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 字节)
StructSize:设为SizeOf(THPDFCABINetworkTimestampOptionsV1)(sizeof(hpdf_network_timestamp_options_v1))ABIVersion:必须等于HPDF_ABI_VERSION_1($00010000)Flags:在 ABI v1 中必须为0MaxResponseBytes:可接受的最大 HTTP 响应体字节数(至多 64 MiB;0选择 4 MiB)TimeoutMS:解析 / 连接 / 发送 / 接收的超时上限,毫秒计(至多 300000 ms;0选择 15000 ms)MaxRedirects:跟随的最大 HTTP 重定向次数(至多 16;0选择 5)URL/URLLength:合法的 UTF-8http://或https://TSA 端点,不得含 NUL 字节或控制字符(1..8192 字节)UserAgent/UserAgentLength:可选的 UTF-8 User-Agent 头值(至多 1024 字节,不得含 CR/LF/NUL)
把它传给 hpdf_network_timestamp_transport_create_v1,用 hpdf_network_timestamp_transport_v1 执行请求,再经 hpdf_network_timestamp_transport_destroy 释放