EndPAdESDSSProcessToFile
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
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 catalog was missing and DSS could not be added
Syntax
Delphi
Function TPDFlib.EndPAdESDSSProcessToFile(DSSProcessID: Integer; Const OutputFile: WideString): Integer; Virtual;ActiveX
Function PDFlib::EndPAdESDSSProcessToFile(DSSProcessID As Long, OutputFile As String) As LongDLL
int DLEndPAdESDSSProcessToFile(int InstanceID, int DSSProcessID, const wchar_t* OutputFile);
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 |
Return values
Returns 1 when the document with its DSS dictionary was written to OutputFile; returns 0 when DSSProcessID does not identify a running process, and another positive code when a processing stage fails (2 input not found, 3 input unreadable, 10 output not written, 11 DSS could not be added)