EndPAdESDSSProcessToStream
Security and Signatures
Requires the Enterprise edition — in Delphi, C++Builder and Lazarus code create the library as TPDFlibEnterprise (unit PDFlibEnterprise); this method is Pascal-only: it takes a Delphi stream object, which the C and Automation ABIs do not carry, so no DLL, ActiveX or Dylib build exports it; other editions keep the method, which returns 0 and sets LastErrorCode to 900 (PDFLIB_ERROR_ENTERPRISE_REQUIRED)
Description
Writes the augmented PDF to the supplied stream. Same return code semantics as EndPAdESDSSProcessToFile
Syntax
Delphi
Function TPDFlib.EndPAdESDSSProcessToStream(DSSProcessID: Integer; OutputStream: TStream): Integer; Virtual;
Parameters
| DSSProcessID | Value returned by one of the NewPAdESDSSProcessFrom* functions |
|---|---|
| OutputStream | Destination byte stream owned by the caller |
Return values
Returns 1 when the document with its DSS dictionary was written to OutputStream; 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)