SetOpenActionDestination
文件屬性
描述
此函式可為所選文件設定起始頁面與縮放係數
語法
Delphi
Function TPDFlib.SetOpenActionDestination(OpenPage, Zoom: Integer): Integer;
ActiveX
Function PDFlib::SetOpenActionDestination(OpenPage As Long, Zoom As Long) As Long
DLL
int DLSetOpenActionDestination(int InstanceID, int OpenPage, int Zoom);
參數
| OpenPage | 文件開啟時要跳到的頁碼 |
|---|---|
| Zoom | 文件開啟時使用的縮放百分比:0..1600 = 縮放百分比 -1 = 符合視窗 -2 = 符合頁寬 |
傳回值
| 0 | 無法設定開啟動作 |
|---|---|
| 1 | 開啟動作設定成功 |