NewPAdESSignatureTimeStampProcessFromFile

Security and Signatures

Requires the Enterprise edition — in Delphi, C++Builder and Lazarus code create the library as TPDFlibEnterprise (unit PDFlibEnterprise); the Enterprise DLL and ActiveX builds provide it unchanged; other editions keep the method, which returns 0, an empty string or False and sets LastErrorCode to 900 (PDFLIB_ERROR_ENTERPRISE_REQUIRED)

Description

Starts a PAdES signature-time-stamp augmentation process from an input PDF file

Syntax

Delphi

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

ActiveX

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

DLL

int DLNewPAdESSignatureTimeStampProcessFromFile(int InstanceID, const wchar_t* InputFile, const wchar_t* Password);
int DLNewPAdESSignatureTimeStampProcessFromFileA(int InstanceID, const char* InputFile, const char* Password);

Parameters

InputFilePath to the signed PDF to augment
PasswordOpen password for encrypted input, or an empty string

Return values

Returns an STSProcessID on success, or 0 when the input file does not exist

See also

SetPAdESSignatureTimeStampField, GetPAdESSignatureValueHashHex