PDFium Delphi Component Docs

RenewPadesArchiveTimestampToStream method

Enterprise edition: link FPdfEnterprise with Lib\Enterprise on the search path; otherwise this method raises EPdfEnterpriseRequired; see the edition matrix

Component: TPdf  ·  Unit: PDFium
Add a fresh archive timestamp to a PAdES-signed document, writing the result to a stream

Syntax

function RenewPadesArchiveTimestampToStream(Stream: TStream; const Options: TPadesArchiveTimestampOptions; out Report: TPadesArchiveTimestampReport): Boolean;

StreamTStream. Destination for the re-timestamped document. nil makes the call return False
OptionsTPadesArchiveTimestampOptions. TsaUrl, Nonce, ContentsSize, UpdateDss, and the nested DssOptions. TPadesArchiveTimestampOptions.Default supplies a usable starting point
ReportTPadesArchiveTimestampReport. Receives SourceLevel, ResultLevel, the document-timestamp counts before and after, source and result lengths, DssUpdated, GenTime, PolicyOid, and Nonce
ResultBoolean. True when a re-timestamped document was produced

Description

A PAdES long-term signature stays verifiable only while its newest archive timestamp is trusted. Renewal appends another document timestamp over the existing bytes, which extends validity without touching the original signature

SourceLevel against ResultLevel in the report shows the conformance level before and after, and DssUpdated records whether validation material was refreshed alongside the timestamp

This is the stream form; RenewPadesArchiveTimestamp writes to a file. Both need the original document bytes, so a document still loading progressively returns False

See Also

RenewPadesArchiveTimestamp, SaveAsPadesDss, ValidatePades, AnalyzeSignatureRevisions