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