NewOutline
书签大纲
描述
向文档添加新的大纲项。大纲项可按层级结构添加。在 Acrobat Reader 中,大纲称为书签
语法
Delphi
Function TPDFlib.NewOutline(Parent: Integer; Const Title: WideString; DestPage: Integer; DestPosition: Double): Integer;
ActiveX
Function PDFlib::NewOutline(Parent As Long, Title As String, DestPage As Long, DestPosition As Double) As Long
DLL
int DLNewOutline(int InstanceID, int Parent, const wchar_t * Title, int DestPage, double DestPosition);
参数
| Parent | 根项目使用 0,子项目使用其父项目的 ID(由 NewOutline 函数返回),也可使用 GetOutlineID 函数获取有效的大纲 ID |
|---|---|
| Title | 大纲项目的标题 |
| DestPage | 此大纲项所链接的目标页码 |
| DestPosition | 要链接到的目标页面垂直位置 |
返回值
| 0 | 无法添加该项目 |
|---|---|
| Non-zero | 成功添加的项目 ID |