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 |