DAGetPageCount
Document properties, Direct access functionality
Description
Returns the number of pages in a document opened with the DAOpenFile function.
Syntax
Delphi
function TQuickPDF0813.DAGetPageCount(FileHandle: Integer): Integer;
ActiveX
Function QuickPDF0813.PDFLibrary::DAGetPageCount(FileHandle As Long) As Long
DLL
int QuickPDFDAGetPageCount(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 |
| Non-zero | The number of pages in the document |