function CommitPageObjectEditTransaction: Boolean;
CommitPageObjectEditTransaction replays the journalled page-object edits of the transaction opened with BeginPageObjectEditTransaction onto the active document and closes the transaction
It returns True when every journalled edit applied cleanly; on False the caller should roll back to restore the captured snapshot
False and leaves the document unchangedExportEditJournal after a successful commitif Pdf1.CommitPageObjectEditTransaction then
Pdf1.UpdatePage(1)
else
Pdf1.RollbackPageObjectEditTransaction;