PDFium Delphi Component Docs

SignPadesToStream method

Component: TPdf  ·  Unit: PDFium
Writes a constrained approval or certification PAdES signature update to a stream

Syntax

function SignPadesToStream(Stream: TStream; const Options: TPadesSignOptions): Boolean;

Description

Appends an incremental approval or certification signature update with optional seed-value, certificate, FieldMDP and DocMDP constraints, then writes the complete output bytes to a destination stream

Parameters

StreamThe destination stream object where output data will be written
OptionsSignature details structure specifying certificates, levels, optional dictionary keys and field constraints

Remarks

Example

var
  OutStream: TMemoryStream;
  Opts: TPadesSignOptions;
begin
  if not Pdf1.Active then Exit;
  OutStream := TMemoryStream.Create;
  try
    Opts := TPadesSignOptions.Default;
    Opts.CertificateThumbprint := 'a1b2c3d4e5';
    Pdf1.SignPadesToStream(OutStream, Opts);
  finally
    OutStream.Free;
  end;
end;

See Also

SignPades SaveAsPadesDssToStream