CommitStructTreeTransaction
标记 PDF、结构修复
描述
事务性结构编辑之后,对文档的 ParentTree、ParentTreeNextKey、IDTree 进行规范化、验证及可选的对账
语法
Delphi
Function TPDFlib.CommitStructTreeTransaction(ReconcileParentTree: Integer= 1): Integer;参数
| ReconcileParentTree | 0 仅规范化,1 为严格 ParentTree 对账(默认),2 为修复模式 ParentTree 对账 |
|---|
返回值
所有编辑顺利提交时返回 1;验证或严格对账失败时返回 0(此时自动恢复到事务前的文档状态)
备注
返回 0 时,请检查 GetLastStructTreeDiagnostics 以获取诸如 conflicting_mcid_owner 或 duplicate_id 的 JSON 详情