Table of Contents

Class PdfLtv

Namespace
MiPdf.Signatures
Assembly
MiPdf.dll

Long-term validation (PAdES B-LT and B-LTA): adds certificates, OCSP responses and CRLs for existing signatures to the Document Security Store (/DSS) in an incremental update. Works for signatures created by any software.

public static class PdfLtv
Inheritance
PdfLtv
Inherited Members

Examples

var signed = PdfSigner.Sign(pdf, signer, new PdfSignatureOptions { TimestampClient = tsa });   // B-T
var lt = PdfLtv.AddValidationData(signed);                                                     // B-LT
var lta = PdfLtv.MakeLta(signed, tsa);                                                         // B-LTA

Methods

AddValidationData(byte[], LtvOptions?)

Adds validation data for all (or the selected) signatures and document time-stamps (B-LT).

public static LtvResult AddValidationData(byte[] pdf, LtvOptions? options = null)

Parameters

pdf byte[]
options LtvOptions

Returns

LtvResult

MakeLta(byte[], ITimestampClient, LtvOptions?)

Makes the signatures B-LTA: adds validation data, a document time-stamp and validation data for the time-stamp's certificates. If the time-stamp fails, the result is B-LT (see Level).

public static LtvResult MakeLta(byte[] pdf, ITimestampClient tsa, LtvOptions? options = null)

Parameters

pdf byte[]
tsa ITimestampClient
options LtvOptions

Returns

LtvResult