Debenu Quick PDF logo

DAGetPageCount

Document properties, Direct access functionality

Description

Returns the number of pages in a document opened with the DAOpenFile function.

Syntax

Delphi

function TDebenuPDFLibrary1511.DAGetPageCount(FileHandle: Integer): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::DAGetPageCount(FileHandle As Long) As Long

DLL

int DPLDAGetPageCount(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

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport