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 Long

DLL

int DLDAGetPageCount(int InstanceID, int FileHandle);

Parameters

FileHandleA handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions

Return values

0The specified FileHandle was not valid The number of pages in the document
Non-zero