NewPAdESSignatureTimeStampProcessFromFileA
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
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to NewPAdESSignatureTimeStampProcessFromFile and string arguments are interpreted using the current SetAnsiMode code page
Starts a PAdES signature-time-stamp augmentation process from an input PDF file
Syntax
Delphi
Function DLNewPAdESSignatureTimeStampProcessFromFileA(InstanceID: Integer; InputFile: PAnsiChar; Password: PAnsiChar): Integer;
DLL
int DLNewPAdESSignatureTimeStampProcessFromFileA(int InstanceID, const char* InputFile, const char* Password);
Parameters
| InputFile | Path to the signed PDF to augment |
|---|---|
| Password | Open 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