PDFium Delphi Component Docs

InspectRecoverySnapshot method

Component: TPdf  ·  Unit: PDFium

Syntax

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

Description

Checks package bounds, checksum, journal structure, and internal fingerprint consistency without changing the active document

TPdfRecoverySnapshotInfo is the record type behind the inspection result, describing one recovery package: the recorded source document name, the journal fingerprints the package spans, and the entry count, replay position, and stored size of the packaged journal, so callers can judge what a restore would replay before calling RestoreRecoverySnapshot

The result reports SourceName, SourceFingerprint, RecoveredFingerprint, EntryCount, Position, and StoredBytes

Security

Inspection does not prove that a separately loaded source PDF matches the package; RestoreRecoverySnapshot performs that replay verification

See Also

RestoreRecoverySnapshot, GetEditJournalInfo