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
FileHandle目标 PDF 文件的句柄标识符。

Return values

Returns the total number of pages in the document.

Usage

See also