PDFium Delphi Component Docs

RollbackPageObjectEditTransaction method

Component: TPdf  ·  Unit: PDFium
Discards the journalled edits and restores the transaction snapshot

Syntax

procedure RollbackPageObjectEditTransaction;

Description

RollbackPageObjectEditTransaction restores the snapshot captured by BeginPageObjectEditTransaction, discards every journalled edit, and closes the transaction

Use it after a failed CommitPageObjectEditTransaction or whenever the caller decides the edit group must not land

Remarks

Example

Pdf1.BeginPageObjectEditTransaction;
try
  Pdf1.SetTextObjectFontSize(0, 14);
  Pdf1.RollbackPageObjectEditTransaction;
except
  Pdf1.RollbackPageObjectEditTransaction;
  raise;
end;

See Also

BeginPageObjectEditTransaction, CommitPageObjectEditTransaction, PageObjectEditTransactionStatus