EndSignProcessToFile
Security and Signatures
Description
Completes a digital signature process and writes the signed document to a file.
The result returned by EndSignProcessToFile will always be zero. To check the result of the digital signature signing process call the GetSignProcessResult function.
Syntax
Delphi
Function TPDFlib.EndSignProcessToFile(SignProcessID: Integer; Const OutputFile: WideString): Integer;
ActiveX
Function PDFlib::EndSignProcessToFile(SignProcessID As Long, OutputFile As String) As Long
DLL
int DLEndSignProcessToFile(int InstanceID, int SignProcessID, const wchar_t* OutputFile);
int DLEndSignProcessToFileA(int InstanceID, int SignProcessID, const char* OutputFile);
Parameters
| SignProcessID | A value returned by the NewSignProcessFromFile, NewSignProcessFromStream or NewSignProcessFromString functions. |
|---|---|
| OutputFile | The path and name of the file to save 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 OutputFile, with the outcome available through GetSignProcessResult