ExtractDocumentRevision

Page manipulation

Description

Writes an earlier revision of the document to a new file

Syntax

Delphi

Function ExtractDocumentRevision(RevisionIndex: Integer; Const OutputFileName: WideString): Integer;

Parameters

RevisionIndex0-based revision (0 is the original file); use GetDocumentRevisionCount for the chain length
OutputFileNameTarget path for the extracted revision

Return value

1 on success, 0 when the document was not loaded from a file or the revision does not exist

Remarks

The output is the raw byte prefix of the source ending at the revision boundary, so signatures of that revision verify unchanged

See also

GetDocumentRevisionEnd, SaveChanges