PDFium Component Docs

SignPades method

Component: TPdf  ·  Unit: PDFium
Appends a PAdES signature update to the PDF document using local certificate stores

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

Parameters

FileNameThe target path where the signed PDF will be saved
OptionsThe signature details structure containing certificate data, timestamps, commitment options, and security levels
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