RecoverEditJournal
Document editing, Recovery
Description
Loads the last complete committed cursor from a persistent edit journal into the selected document and reactivates its undo and redo history
Each record carries a checksum. An incomplete or corrupt trailing record is ignored, so a process interrupted during append recovers the preceding durable commit
Recovery reads the file without altering it. Before the first subsequent journal write, incomplete trailing data and states lacking a committed cursor are removed, so later commits and undo or redo operations stay recoverable
The journal never persists passwords. Supply Password to load encrypted snapshots; public-key encrypted snapshots use the currently configured decryption credential
A committed cursor that references a missing state is rejected cleanly without returning a partially recovered journal
Syntax
Delphi
Function TPDFlib.RecoverEditJournal(Const FileName: WideString; Const Password: WideString= ''): Integer;ActiveX
Function PDFlib::RecoverEditJournal(FileName As String, Password As String) As LongDLL
int DLRecoverEditJournal(int InstanceID, const wchar_t* FileName, const wchar_t* Password);
int DLRecoverEditJournalA(int InstanceID, const char* FileName, const char* Password);Parameters
| FileName | Path of the persistent edit journal to recover |
|---|---|
| Password | Optional password used to load encrypted snapshot states, defaulting to an empty string; the journal never stores passwords, and public-key encrypted snapshots use the configured decryption credential |
Return values
| 1 | The last complete state and its history were restored |
|---|---|
| 0 | The journal is invalid, has no complete cursor, the password is wrong, or the snapshot could not be restored |