DAFindPage

直接存取功能

描述

此函式取得頁面參照,供其他 Direct Access 函式使用。即使文件加入或移除其他頁面,此頁面參照仍保持不變。

語法

Delphi

Function TPDFlib.DAFindPage(FileHandle, Page: Integer): Integer;

ActiveX

Function PDFlib::DAFindPage(FileHandle As Long, Page As Long) As Long

DLL

int DLDAFindPage(int InstanceID, int FileHandle, int Page);

參數

FileHandle由 DAOpenFile、DAOpenFileReadOnly 或 DAOpenFromStream 函式傳回的控制代碼
Page頁碼。文件第一頁的頁碼為 1。

傳回值

0指定的 FileHandle 無效,或 Page 參數超出範圍
Non-zero可當成 PageRef 參數、搭配任一直接存取函式使用的 ID