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

NamePurpose
FileHandleHandle identifier of the target PDF file

Return values

Returns the total number of pages in the document.

Usage

See also