GetDocumentRevisionStartA

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

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

回報單一遞增版次在檔案內開始的位元組偏移

語法

Delphi

Function DLGetDocumentRevisionStartA(InstanceID: Integer; InputFile: PAnsiChar; Password: PAnsiChar; RevisionIndex: Integer): Int64;

DLL

long long DLGetDocumentRevisionStartA(int InstanceID, const char* InputFile, const char* Password, int RevisionIndex);

參數

InputFile要檢查的 PDF 檔案路徑
Password開啟密碼;檔案未加密時為空字串
RevisionIndex所要求起始偏移的版次編號(零起算)

傳回值

傳回位元組偏移;索引無效時為 0

備註

偏移量為 64 位元。DLL 與 Dylib 匯出傳回 long long,Automation 成員傳回 64 位元整數,因此沒有此類型別的指令碼主機無法接收超過 2 GB 的偏移;需要這麼大的偏移時,請使用 Delphi、C++Builder 或 Lazarus API,或從 C 呼叫匯出

另請參閱

GetDocumentRevisionCount, GetDocumentRevisionEnd, GetDocumentRevisionKind