PDFium Delphi Component Docs

SignPadesWithPdfA method

PAdES B-B and B-T signing is part of every edition; the B-LT and B-LTA levels require the Enterprise edition (link FPdfEnterprise with Lib\Enterprise on the search path), otherwise they raise EPdfEnterpriseRequired before any output is written; see the edition matrix

Component: TPdf  ·  Unit: PDFium
Saves a signed PAdES PDF document complying with PDF/A archive standards

Syntax

function SignPadesWithPdfA(const FileName: string; const Options: TPadesSignOptions; PdfAOptions: TPdfASaveOptions): Boolean;

Description

Performs a combined PDF/A conformance conversion and PAdES digital signing, outputting a long-term archive compliant document in a single workflow

Parameters

FileNameDestination path for the signed PDF/A file
OptionsPAdES signature configuration record
PdfAOptionsPDF/A target conformance level and options record

Remarks

Example

var
  SignOpts: TPadesSignOptions;
  PdfAOpts: TPdfASaveOptions;
begin
  if not Pdf1.Active then Exit;
  SignOpts := TPadesSignOptions.Default;
  SignOpts.CertificateThumbprint := 'a1b2c3d4';
  PdfAOpts.Conformance := pacPdfA1b;
  Pdf1.SignPadesWithPdfA('archived-signed.pdf', SignOpts, PdfAOpts);
end;

See Also

SignPades SaveAsPadesDss