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 |