SetOutlineDestinationZoom
书签大纲
描述
将大纲项目(书签)的目标设置为页面上的特定位置,并设置文档的缩放百分比
语法
Delphi
Function TPDFlib.SetOutlineDestinationZoom(OutlineID, DestPage: Integer; DestPosition: Double; Zoom: Integer): Integer;
ActiveX
Function PDFlib::SetOutlineDestinationZoom(OutlineID As Long, DestPage As Long, DestPosition As Double, Zoom As Long) As Long
DLL
int DLSetOutlineDestinationZoom(int InstanceID, int OutlineID, int DestPage, double DestPosition, int Zoom);
参数
| OutlineID | NewOutline 函数返回的大纲 ID。或者,使用 GetOutlineID 函数获取有效的大纲 ID |
|---|---|
| DestPage | 此大纲应链接到的页码 |
| DestPosition | 大纲应链接到的页面垂直位置,指定页面底部的点会显示下一页,最好链接到页面顶部的点 |
| Zoom | 显示目标页面的缩放因子:0..1600 = 缩放百分比 -1 = 适合窗口 -2 = 适合宽度 |
返回值
| 0 | OutlineID 无效 目标设置成功 |
|---|---|
| 1 |