PDFium Delphi Component Docs

RestoreRecoverySnapshot method

Component: TPdf  ·  Unit: PDFium

Syntax

procedure RestoreRecoverySnapshot(Stream: TStream;
  AllowSignedDocument: Boolean = False); overload;
procedure RestoreRecoverySnapshot(const FileName: string;
  AllowSignedDocument: Boolean = False); overload;

Description

Validates the outer checksum, the package lengths, the journal digest chain, the loaded source fingerprint, every forward and inverse patch, and the final recovered fingerprint before installing the recovered document and its undo history

Load the candidate source PDF into the component before calling this method

Signed PDFs

Recovery is rejected by default when the active PDF contains a signature, because the recovered revision lies outside its original coverage

Set AllowSignedDocument only when the application has explicitly authorised that consequence

See Also

SaveRecoverySnapshot, InspectRecoverySnapshot, ImportEditJournal