NewOutlineA
书签大纲
描述
后缀 A 表示 ANSI(char)DLL 入口点,ActiveX/COM 接口仅提供 Unicode 形式,行为与 NewOutline 相同,字符串参数会使用当前 SetAnsiMode 代码页解释
向文档添加新的大纲项。大纲项可按层级结构添加。在 Acrobat Reader 中,大纲称为书签
语法
Delphi
Function DLNewOutlineA(InstanceID, Parent: Integer; Title: PAnsiChar; DestPage: Integer; DestPosition: Double): Integer;
DLL
int DLNewOutlineA(int InstanceID, int Parent, const char * Title, int DestPage, double DestPosition);
参数
| Parent | 根项目使用 0,子项目使用其父项目的 ID(由 NewOutline 函数返回),也可使用 GetOutlineID 函数获取有效的大纲 ID |
|---|---|
| Title | 大纲项目的标题 |
| DestPage | 此大纲项所链接的目标页码 |
| DestPosition | 要链接到的目标页面垂直位置 |
返回值
| 0 | 无法添加该项目 |
|---|---|
| Non-zero | 成功添加的项目 ID |