PDFium Delphi Component Docs

SaveAsPadesDss method

Component: TPdf  ·  Unit: PDFium
Saves the active PDF to a file while embedding PAdES Document Security Store (DSS) validation certificates

Syntax

function SaveAsPadesDss(const FileName: string; const Options: TPadesDssOptions): Boolean; overload;

Description

Saves the current document bytes into a file while injecting X.509 validation materials (certificates, CRLs, and OCSP responses) into the document's global /DSS dictionary

TPadesDssOptions.Vris can associate selected material with each signature through indirect /Type /VRI dictionaries keyed by the uppercase SHA-1 of the complete decoded signature /Contents value, including any padding bytes

Requires Active to be True; returns False if the save operation fails

Parameters

FileNameAbsolute or relative path to the destination file
OptionsComplete DSS configuration containing DER material arrays, signature-specific VRI index lists, and extension settings

Remarks

Example

var
  DssOpts: TPadesDssOptions;
begin
  if not Pdf1.Active then Exit;
  DssOpts := TPadesDssOptions.Default;
  // populate DssOpts.Certs with DER validation certificates
  Pdf1.SaveAsPadesDss('signed-blt.pdf', DssOpts);
end;

See Also

SaveAsPadesDssToStream SignPades ValidatePades