SetStructTreeCursorText

标记 PDF、结构修复

描述

更新 CursorID 指向的结构元素上的 /S、/T、/Alt、/ActualText、/Lang、/ID 或 /E

语法

Delphi

Function TPDFlib.SetStructTreeCursorText(CursorID, InfoID: Integer; Const Value: WideString): Integer;

参数

CursorID通过 OpenStructTreeCursor 或 InsertStructTreeCursorChild 打开的有效光标
InfoID1 为 /S 标签类型,3 为 /T 标题,4 为 /Alt,5 为 /ActualText,6 为 /Lang,7 为 /ID,8 为 /E 扩展
Value新的文本值;空字符串删除键 3 至 8(键 1 /S 需要非空的有效 PDF 名称)

返回值

更新时返回 1,光标或 InfoID/Value 无效时返回 0

备注

更新 /ID 条目后请调用 ReconcileStructParentTree 或 CommitStructTreeTransaction,使 IDTree 保持排序与同步