ExtractDocumentRevisionA

頁面操作

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

描述

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

把文件的較早版次寫到新檔案

語法

Delphi

Function DLExtractDocumentRevisionA(InstanceID: Integer; RevisionIndex: Integer; OutputFileName: PAnsiChar): Integer;

DLL

int DLExtractDocumentRevisionA(int InstanceID, int RevisionIndex, const char* OutputFileName);

參數

RevisionIndex零起算的版次(0 為原始檔案);鏈結長度請用 GetDocumentRevisionCount
OutputFileName擷取版次的目的路徑

傳回值

成功傳回 1;若文件並非從檔案載入或修訂版次不存在則傳回 0

備註

輸出是來源在版次邊界截止的原始位元組字首,該版次的簽章因此原樣可驗

另請參閱

GetDocumentRevisionEnd, SaveChanges