NewPAdESDSSProcessFromStream
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
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
| InputStream | Source PDF byte stream |
|---|---|
| Password | Open 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.