DAGetPageCount
文档属性、直接访问功能
描述
返回使用 DAOpenFile 函数打开的文档的页数
语法
Delphi
Function TPDFlib.DAGetPageCount(FileHandle: Integer): Integer;
ActiveX
Function PDFlib::DAGetPageCount(FileHandle As Long) As Long
DLL
int DLDAGetPageCount(int InstanceID, int FileHandle);
参数
| FileHandle | 由 DAOpenFile、DAOpenFileReadOnly 或 DAOpenFromStream 函数返回的句柄 |
|---|
返回值
| 0 | 指定的 FileHandle 无效;文档中的页数 |
|---|---|
| Non-zero |