EndPAdESDSSProcessToFileA
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 EndPAdESDSSProcessToFile and string arguments are interpreted using the current SetAnsiMode code page
Writes the augmented PDF (source + incremental DSS update) to the specified file path. Also auto-injects /Extensions /ESIC <</BaseVersion /1.7 /ExtensionLevel 1>> per ETSI EN 319 142-1 v1.2.1 §5.6 when missing
Returns 1 on success, 2 if the input file vanished, 3 if the input PDF cannot be parsed, 10 if the output could not be written, or 11 if the catalogue was missing and DSS could not be added
Syntax
Delphi
Function DLEndPAdESDSSProcessToFileA(InstanceID: Integer; DSSProcessID: Integer; OutputFile: PAnsiChar): Integer;
DLL
int DLEndPAdESDSSProcessToFileA(int InstanceID, int DSSProcessID, const char* OutputFile);
Parameters
| DSSProcessID | Value returned by one of the NewPAdESDSSProcessFrom* functions |
|---|---|
| OutputFile | Destination path for the augmented PDF |