PDFium Delphi Component Docs

EnableRecoveryAutosave method

Component: TPdf  ·  Unit: PDFium

Syntax

procedure EnableRecoveryAutosave(const FileName: string);

Description

Configures a single absolute sidecar path that is atomically refreshed after each changed transaction commit, undo, or redo

If committed history already exists, the method writes the current recovery state immediately

Failure behaviour

The source PDF path is rejected

An autosave I/O exception is reported after the document and journal operation has succeeded, so the application can correct the path and retry SaveRecoverySnapshot

See Also

DisableRecoveryAutosave, RecoveryAutosaveFileName, SaveRecoverySnapshot