BeginStructTreeTransaction

Tagged PDF, structure repair

Description

Captures a rollback snapshot of the currently selected PDF document before applying structure-tree edits

Syntax

Delphi

Function TPDFlib.BeginStructTreeTransaction: Integer;

Return values

1 when the structure-tree transaction started, or 0 when no document is open, aborted, or a transaction is already active

Remarks

Pair every transaction with CommitStructTreeTransaction or RollbackStructTreeTransaction. Any structural validation or strict ParentTree reconciliation failure during commit restores the captured document state automatically