THotPDF.RenewPAdESLTATimestamp Method

Enterprise edition: this feature ships with HotPDF Enterprise. Add HPDFEnterprise to a uses clause (C++Builder: #pragma link "HPDFEnterprise"); other editions retain the declaration and raise EHPDFEnterpriseRequired

Extends a PAdES-LTA archive timestamp chain through a transactional incremental update

Declaration

class function RenewPAdESLTATimestamp(const InputPDFPath, OutputPDFPath: string; const GetDocumentTimeStamp: THPDFCMSTimestampCallback; ContentsBytes: Integer= 16384): boolean; overload;
class function RenewPAdESLTATimestamp(const InputPDFPath, OutputPDFPath: string; const GetDocumentTimeStamp: THPDFCMSTimestampCallback; DigestAlgorithm: THPDFCMSDigestAlgorithm; ContentsBytes: Integer= 16384): boolean; overload;
class function RenewPAdESLTATimestamp(const InputPDFPath, OutputPDFPath: string; const GetDocumentTimeStamp: THPDFCMSTimestampCallback; const Evidence: THPDFPAdESLTAEvidence; ContentsBytes: Integer= 16384): boolean; overload;
class function RenewPAdESLTATimestamp(const InputPDFPath, OutputPDFPath: string; const GetDocumentTimeStamp: THPDFCMSTimestampCallback; const Evidence: THPDFPAdESLTAEvidence; DigestAlgorithm: THPDFCMSDigestAlgorithm; ContentsBytes: Integer= 16384): boolean; overload;

Evidence

THPDFPAdESLTAEvidence carries Certificates, OCSPResponses and CRLs as arrays of DER byte arrays

Implement the THPDFCMSTimestampCallback with HPDFRFC3161BuildRequest, HPDFRFC3161DefaultRequestOptions and HPDFRFC3161ParseResponse: the helpers build the DER request with a fresh nonce and parse the response, whilst the HTTP transport to the TSA stays with the caller

Usage notes