procedure BeginPageObjectEditTransaction(AllowSignedDocument: Boolean = False);
BeginPageObjectEditTransaction captures a bounded, reproducible snapshot of the active document and enters the transaction state in which page-object edits are journalled instead of being applied directly
By default the call refuses a document that carries signatures; pass AllowSignedDocument = True to open the transaction anyway when the caller accepts responsibility for invalidating existing signatures
PageObjectEditTransactionStatus while the transaction is openCommitPageObjectEditTransaction to apply the journalled edits or RollbackPageObjectEditTransaction to restore the snapshotWrap a group of object edits so they can be undone as one unit
Pdf1.BeginPageObjectEditTransaction;
try
Pdf1.SetTextObjectFontSize(3, 14);
if not Pdf1.CommitPageObjectEditTransaction then Pdf1.RollbackPageObjectEditTransaction;
finally
Pdf1.UpdatePage(1);
end;