NewPAdESDSSProcessFromFileA
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 NewPAdESDSSProcessFromFile and string arguments are interpreted using the current SetAnsiMode code page
Opens a previously signed PDF from disk to attach PAdES Document Security Store validation material via incremental update. Returns a process id that subsequent AddPAdESDSS* and EndPAdESDSSProcessTo* calls operate on
DSS augmentation is the canonical PAdES-B-LT step: take an already-signed PDF and bind certificate / CRL / OCSP evidence into the catalog so the signature can be verified long after revocation services are gone or signing certificates expire (ETSI EN 319 142-1 v1.2.1 clause 5.4.2.2)
Syntax
Delphi
Function DLNewPAdESDSSProcessFromFileA(InstanceID: Integer; InputFile: PAnsiChar; Password: PAnsiChar): Integer;
DLL
int DLNewPAdESDSSProcessFromFileA(int InstanceID, const char* InputFile, const char* Password);
Parameters
| InputFile | Path of the source signed PDF to augment |
|---|---|
| Password | Open password if the PDF is encrypted, empty string otherwise |