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 = 符合頁寬

傳回值

0OutlineID 無效 目的地設定成功
1