AddPublicKeyRecipientFromPFXA
安全與簽章
需要 Enterprise 版本。在 Delphi、C++Builder 與 Lazarus 程式碼中,請以 TPDFlibEnterprise(PDFlibEnterprise 單元)建立程式庫;Enterprise DLL 與 ActiveX 組建原樣提供。其他版本保留此方法,方法會傳回 0、空字串或 False,並將 LastErrorCode 設為 900(PDFLIB_ERROR_ENTERPRISE_REQUIRED)
描述
AddPublicKeyRecipientFromPFX 的 ANSI 版本
字串參數接受 ANSI 文字,其餘行為與寬字元字串版本完全相同
語法
DLL
int DLAddPublicKeyRecipientFromPFXA(int InstanceID, const char* PFXFileName, const char* PFXPassword, int UseMachineKeyset, int Permissions);傳回值
| 1 | 收件者憑證已加入 |
|---|---|
| 0 | PFX、密碼、權限或文件狀態無效 |
備註
私密金鑰只在加入收件者時用來識別末端憑證,不會內嵌進 PDFDLL 也匯出
ANSI 字串請用 DLAddPublicKeyRecipientFromPFXA