NewPAdESDSSProcessFromStringA
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
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to NewPAdESDSSProcessFromString and string arguments are interpreted using the current SetAnsiMode code page
AnsiString variant of NewPAdESDSSProcessFromFile, useful when the source PDF is already loaded in memory
Syntax
Delphi
Function DLNewPAdESDSSProcessFromStringA(InstanceID: Integer; Source: PAnsiChar; SourceLength: Integer; Password: PAnsiChar): Integer;
DLL
int DLNewPAdESDSSProcessFromStringA(int InstanceID, const char* Source, int SourceLength, const char* Password);
Parameters
| Source | Raw PDF bytes packed in an AnsiString |
|---|---|
| Password | Open password if the PDF is encrypted |