procedure RollbackPageObjectEditTransaction;
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
EPdfErrorPdf1.BeginPageObjectEditTransaction;
try
Pdf1.SetTextObjectFontSize(0, 14);
Pdf1.RollbackPageObjectEditTransaction;
except
Pdf1.RollbackPageObjectEditTransaction;
raise;
end;