EndSignProcessToStream

Security and Signatures

Description

Completes a digital signature process and writes the signed document to a TStream

The result returned by EndSignProcessToStream will always be zero. To check the result of the digital signature signing process call the GetSignProcessResult function

Syntax

Delphi

Function TPDFlib.EndSignProcessToStream(SignProcessID: Integer; OutputStream: TStream): Integer;

Parameters

SignProcessIDA value returned by the NewSignProcessFromFile, NewSignProcessFromStream or NewSignProcessFromString functions
OutputStreamThe TStream object to write the signed PDF to

Return values

Returns 0 when SignProcessID does not identify a signing process; a valid process runs its final signing pass and writes OutputStream, with the outcome available through GetSignProcessResult