EndPAdESDSSProcessToStream

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 to the supplied stream. Same return code semantics as EndPAdESDSSProcessToFile.

Syntax

Delphi

Function TPDFlib.EndPAdESDSSProcessToStream(DSSProcessID: Integer; OutputStream: TStream): Integer; Virtual;

Parameters

DSSProcessIDValue returned by one of the NewPAdESDSSProcessFrom* functions.
OutputStreamDestination 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)