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 | Handle identifier of the target PDF file |
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.