NewPAdESDSSProcessFromStream

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

Stream variant of NewPAdESDSSProcessFromFile. The caller owns the stream and must keep it alive until EndPAdESDSSProcessTo* returns

Syntax

Delphi

Function TPDFlib.NewPAdESDSSProcessFromStream(InputStream: TStream; Const Password: WideString): Integer; Virtual;

Parameters

InputStreamSource PDF byte stream
PasswordOpen password if the PDF is encrypted

Return values

Returns the ID of the new DSS process that the AddPAdESDSS* and EndPAdESDSSProcessTo* functions operate on. Returns 0 when the stream cannot be read or the process cannot be started; in editions without this feature the call returns 0 and LastErrorCode reports that the Enterprise edition is required.