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

    • Calling it outside an open transaction does nothing
    • After a rollback the document is byte-identical to the state at transaction begin for all journalled operations

Example

if not Pdf1.CommitPageObjectEditTransaction then
  Pdf1.RollbackPageObjectEditTransaction;

See Also