PDFium Delphi Component Docs

SignPades method

Component: TPdf  ·  Unit: PDFium
Appends a constrained approval or certification PAdES signature using a local certificate

Syntax

function SignPades(const FileName: string; const Options: TPadesSignOptions): Boolean; overload;
function SignPades(const FileName: string; const Thumbprint: string): Boolean; overload;

Description

Appends an incremental digital signature update to the PDF document, generating a PAdES B-B or B-T compliant signature dictionary

The method supports both advanced certificate configuration records and simple SHA-1 hex thumbprints mapping to the Windows Current User 'MY' store

Options.FieldOptions can add required seed values, allowed reasons and legal attestations, acceptable signer certificates, field locks and approval or certification transform parameters

Parameters

FileNameThe target path where the signed PDF will be saved
OptionsThe signature details structure containing certificate data, timestamps, commitment options, security levels and field constraints
ThumbprintSHA-1 hex thumbprint string of the certificate from the local Windows store

Remarks

Example

begin
  if not Pdf1.Active then Exit;
  Pdf1.SignPades('signed.pdf', 'a1b2c3d4e5f678901234567890abcdef12345678');
end;

See Also

SignPadesToStream SignPadesWithPdfA ValidatePades