GetDocumentRevisionKindA
安全性與簽章、直接存取功能
需要 Small Business 版本。在 Delphi、C++Builder 與 Lazarus 程式碼中,請以 TPDFlibSmallBusiness(PDFlibSmallBusiness 單元)或 TPDFlibEnterprise 建立程式庫;Small Business 與 Enterprise DLL 及 ActiveX 組建原樣提供。Single 版本保留此方法,方法會傳回 7,並將 LastErrorCode 設為 901(PDFLIB_ERROR_SMALLBUSINESS_REQUIRED)
描述
結尾的 A 表示 ANSI(char)DLL 進入點;ActiveX/COM 介面只提供 Unicode 形式。行為與 GetDocumentRevisionKind 完全相同,字串參數依目前 SetAnsiMode 的字碼頁解讀
分類單一版次改了什麼,以其觸及物件中最深遠的類別表示
語法
Delphi
Function DLGetDocumentRevisionKindA(InstanceID: Integer; InputFile: PAnsiChar; Password: PAnsiChar; RevisionIndex: Integer): Integer;
DLL
int DLGetDocumentRevisionKindA(int InstanceID, const char* InputFile, const char* Password, int RevisionIndex);
參數
| InputFile | 要檢查的 PDF 檔案路徑 |
|---|---|
| Password | 開啟密碼;檔案未加密時為空字串 |
| RevisionIndex | 所要求類型的版次編號(零起算) |
傳回值
| 0 | 僅簿記變更 |
|---|---|
| 1 | 驗證材料(DSS 或 VRI) |
| 2 | 文件時間戳記 |
| 3 | 簽章 |
| 4 | 表單欄位 |
| 5 | 註解 |
| 6 | 文件內容 |
| 7 | 無法判定;該版次不得視為無害,因為其中有內容無法讀取 |
另請參閱
GetDocumentRevisionCount, GetDocumentRevisionChanges, GetSignatureRevisionIndex