CommitStructTreeTransaction

タグ付き PDF、構造修復

説明

トランザクション構造編集の後に、ドキュメントの ParentTree、ParentTreeNextKey、IDTree を正規化・検証し、必要なら照合します

構文

Delphi

Function TPDFlib.CommitStructTreeTransaction(ReconcileParentTree: Integer= 1): Integer;

パラメータ

ReconcileParentTree0 は正規化のみ、1 は厳密な ParentTree 照合(既定)、2 は修復モードの ParentTree 照合

戻り値

すべての編集がきれいにコミットできれば 1。検証や厳密な照合に失敗した場合は 0(その場合、トランザクション前のドキュメント状態へ自動復元します)

備考

0 が返ったら GetLastStructTreeDiagnostics で conflicting_mcid_owner や duplicate_id といった JSON 詳細を確認してください