BeginEditTransaction

Document editing, Recovery

Description

Captures the selected document before a related group of editing calls and opens one explicit transaction

If the document changed outside a journal transaction since the last committed state, that current state becomes the new baseline and obsolete history is discarded

Syntax

Delphi

Function TPDFlib.BeginEditTransaction(Const LabelText: WideString= ''): Integer;

ActiveX

Function PDFlib::BeginEditTransaction(LabelText As String) As Long

Parameters

LabelTextOptional UTF-8 label stored with the committed state for diagnostics

Return values

1The transaction opened
0The journal belongs to another selected document, a transaction is already open, or the baseline could not be persisted