THotPDF.RenewPAdESLTATimestamp Method

企业版:此功能随 HotPDF Enterprise 提供。在 uses 子句中加入 HPDFEnterprise(C++Builder:#pragma link "HPDFEnterprise");其他版本保留声明,调用时抛出 EHPDFEnterpriseRequired

Appends a new RFC 3161 document timestamp through a transactional incremental update

声明

class function RenewPAdESLTATimestamp(const InputPDFPath, OutputPDFPath: string; const GetDocumentTimeStamp: THPDFCMSTimestampCallback; ContentsBytes: Integer= 16384): boolean;

证据

THPDFPAdESLTAEvidence 以 DER 字节数组的数组形式携带 Certificates、OCSPResponses 和 CRLs

用 HPDFRFC3161BuildRequest、HPDFRFC3161DefaultRequestOptions 与 HPDFRFC3161ParseResponse 实现 THPDFCMSTimestampCallback:这些辅助方法用全新的 nonce 构建 DER 请求并解析响应,而到 TSA 的 HTTP 传输仍由调用方负责

使用说明