NewPAdESSignatureTimeStampProcessFromFileA

安全與簽章

需要 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 形式。行為與 NewPAdESSignatureTimeStampProcessFromFile 完全相同,字串參數依目前 SetAnsiMode 的字碼頁解讀

從輸入 PDF 檔案開始 PAdES 簽章時間戳記增強程序

語法

Delphi

Function DLNewPAdESSignatureTimeStampProcessFromFileA(InstanceID: Integer; InputFile: PAnsiChar; Password: PAnsiChar): Integer;

DLL

int DLNewPAdESSignatureTimeStampProcessFromFileA(int InstanceID, const char* InputFile, const char* Password);

參數

InputFile要增強的已簽署 PDF 路徑
Password加密輸入的開啟密碼;空字串表示無

傳回值

成功傳回 STSProcessID;輸入檔案不存在時傳回 0

另請參閱

SetPAdESSignatureTimeStampField, GetPAdESSignatureValueHashHex