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 LongParameters
| LabelText | Optional UTF-8 label stored with the committed state for diagnostics |
|---|
Return values
| 1 | The transaction opened |
|---|---|
| 0 | The journal belongs to another selected document, a transaction is already open, or the baseline could not be persisted |