GetSignatureRevisionIndexA

安全性與簽章、直接存取功能

需要 Small Business 版本。在 Delphi、C++Builder 與 Lazarus 程式碼中,請以 TPDFlibSmallBusiness(PDFlibSmallBusiness 單元)或 TPDFlibEnterprise 建立程式庫;Small Business 與 Enterprise DLL 及 ActiveX 組建原樣提供。Single 版本保留此方法,方法會傳回 -1,並將 LastErrorCode 設為 901(PDFLIB_ERROR_SMALLBUSINESS_REQUIRED)

描述

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

回報簽章 ByteRange 結束所在版次的零起算索引

簽章未結束在版次邊界時傳回 -1,代表簽章宣稱涵蓋的範圍內被附加了位元組

語法

Delphi

Function DLGetSignatureRevisionIndexA(InstanceID: Integer; InputFile: PAnsiChar; Password: PAnsiChar; FieldName: PAnsiChar): Integer;

DLL

int DLGetSignatureRevisionIndexA(int InstanceID, const char* InputFile, const char* Password, const char* FieldName);

參數

InputFile要檢查的已簽署 PDF 檔案路徑
Password開啟密碼;檔案未加密時為空字串
FieldName所要求版次之簽章的完整限定欄位名稱

傳回值

傳回版次索引;簽章 ByteRange 未結束在版次邊界則為 -1

另請參閱

GetDocumentRevisionCount, GetDocumentRevisionKind, ApplyPAdESLongTermValidation