GetDocumentRevisionsCompleteA
數位簽章
需要 Small Business 版本。在 Delphi、C++Builder 與 Lazarus 程式碼中,請以 TPDFlibSmallBusiness(PDFlibSmallBusiness 單元)或 TPDFlibEnterprise 建立程式庫;Small Business 與 Enterprise DLL 及 ActiveX 組建原樣提供。Single 版本保留此方法,方法會傳回 0、空字串或 False,並將 LastErrorCode 設為 901(PDFLIB_ERROR_SMALLBUSINESS_REQUIRED)
描述
結尾的 A 表示 ANSI(char)DLL 進入點;ActiveX/COM 介面只提供 Unicode 形式。行為與 GetDocumentRevisionsComplete 完全相同,字串參數依目前 SetAnsiMode 的字碼頁解讀
回報文件的完整版次歷史是否可復原
語法
Delphi
Function DLGetDocumentRevisionsCompleteA(InstanceID: Integer; InputFile: PAnsiChar; Password: PAnsiChar): Integer;
DLL
int DLGetDocumentRevisionsCompleteA(int InstanceID, const char* InputFile, const char* Password);
參數
| InputFile | 要檢查的文件 |
|---|---|
| Password | 開啟它的密碼;空字串表示無 |
傳回值
| 1 | 交叉參照鏈已一路追到底,版次清單因此就是完整歷史 |
|---|---|
| 0 | 沒有,或檔案無法讀取 |
備註
鏈結若有斷裂、成環,或長度超過閱讀器願意追蹤的範圍,最舊的更新就會看不到。此時 GetDocumentRevisionCount 回傳的每個數字與其他修訂函式使用的索引都只是下界而非答案,據此推導簽章涵蓋範圍的結論並不可靠。把修訂分析當成最終結論之前,先確認這一點
另請參閱
GetDocumentRevisionCount, GetDocumentRevisionKind, GetSignatureRevisionIndex