NewSignProcessFromFile

Security and Signatures

Description

Creates a new digital signature process using a file as the source document.

Syntax

Delphi

Function TPDFlib.NewSignProcessFromFile(Const InputFile, Password: WideString): Integer;

ActiveX

Function PDFlib::NewSignProcessFromFile(InputFile As String, Password As String) As Long

DLL

int DLNewSignProcessFromFile(int InstanceID, const wchar_t* InputFile, const wchar_t* Password);
int DLNewSignProcessFromFileA(int InstanceID, const char* InputFile, const char* Password);

Parameters

InputFileThe path and name of the file to sign
PasswordThe password to open the PDF, if any

Return values

Returns a SignProcessID for the new signature process. Returns 0 when the input file does not exist.