function SignPadesToStream(Stream: TStream; const Options: TPadesSignOptions): Boolean;
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
| Stream | The destination stream object where output data will be written |
| Options | Signature details structure specifying certificates, levels, optional dictionary keys and field constraints |
Active to be True/Annots array and the AcroForm /Fields arrayFieldOptions can add required seed values, allowed reasons and legal attestations, acceptable signer certificates and field or document modification policies
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;