DAGetPageCount
Document properties, Direct access functionality
Description
Returns the number of pages in a document opened with the DAOpenFile function.
Syntax
Delphi
function TPDFlib.DAGetPageCount(FileHandle: Integer): Integer;ActiveX
Function PDFlib::DAGetPageCount(FileHandle As Long) As LongDLL
int DLDAGetPageCount(int InstanceID, int FileHandle);Parameters
| FileHandle | A handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions |
|---|
Return values
| 0 | The specified FileHandle was not valid The number of pages in the document |
|---|---|
| Non-zero |