NewPAdESDSSProcessFromStringA

安全與簽章

需要 Enterprise 版本。在 Delphi、C++Builder 與 Lazarus 程式碼中,請以 TPDFlibEnterprise(PDFlibEnterprise 單元)建立程式庫;Enterprise DLL 與 ActiveX 組建原樣提供。其他版本保留此方法,方法會傳回 0、空字串或 False,並將 LastErrorCode 設為 900(PDFLIB_ERROR_ENTERPRISE_REQUIRED)

描述

結尾的 A 表示 ANSI(char)DLL 進入點;ActiveX/COM 介面只提供 Unicode 形式。行為與 NewPAdESDSSProcessFromString 完全相同,字串參數依目前 SetAnsiMode 的字碼頁解讀

NewPAdESDSSProcessFromFile 的 AnsiString 變體,來源 PDF 已載入記憶體時很好用

語法

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);

參數

Source以 AnsiString 打包的原始 PDF 位元組
PasswordPDF 有加密時為開啟密碼