THotPDF.DAGetPageCount Method
Gets the total number of pages in a PDF document opened via Direct Access (DA) mode.
Declaration
function DAGetPageCount(FileHandle: Integer): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FileHandle | 目标 PDF 文件的句柄标识符。 |
Return values
Returns the total number of pages in the document.
Usage
- Call: THotPDF.DAGetPageCount
- Used to quickly obtain the page count of large files without loading the entire document.
See also
- THotPDF
- Directory