PDFium Delphi Component Docs

InspectRecoverySnapshot 方法

元件: TPdf  ·  單元: PDFium

語法

function InspectRecoverySnapshot(Stream: TStream): TPdfRecoverySnapshotInfo; overload;
function InspectRecoverySnapshot(const FileName: string): TPdfRecoverySnapshotInfo; overload;

說明

檢查套件邊界、校驗和、日誌結構與內部指紋一致性,而不變更作用中的文件

TPdfRecoverySnapshotInfo 是檢查結果背後的記錄型別,描述一個復原套件:記錄的來源文件名稱、套件橫跨的日誌指紋,以及封裝日誌的項目數、重播位置與儲存大小,讓呼叫端在呼叫 RestoreRecoverySnapshot 之前就能判斷還原會重播哪些內容

結果會回報 SourceName、SourceFingerprint、RecoveredFingerprint、EntryCount、Position 與 StoredBytes

安全

檢查並無法證明另行載入的來源 PDF 符合該套件;RestoreRecoverySnapshot 才會執行該重播驗證

另請參閱

RestoreRecoverySnapshot, GetEditJournalInfo