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, package lengths, journal digest chain, loaded source fingerprint, every forward and inverse patch, and final recovered fingerprint before installing the recovered document and 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 is outside its original coverage

Set AllowSignedDocument only when the application has explicitly authorised that consequence

See Also

SaveRecoverySnapshot, InspectRecoverySnapshot, ImportEditJournal