DAGetAnnotationCount

Direct access functionality

Description

Returns the number of annotations on the specified page.

Syntax

Delphi

Function TPDFlib.DAGetAnnotationCount(FileHandle, PageRef: Integer): Integer;

ActiveX

Function PDFlib::DAGetAnnotationCount(FileHandle As Long, PageRef As Long) As Long

DLL

int DLDAGetAnnotationCount(int InstanceID, int FileHandle, int PageRef);

Parameters

FileHandleA handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions
PageRefA page reference returned by the DAFindPage or DANewPage functions

Return values

Returns the number of annotations on the specified page. Returns 0 when the file handle or page reference is invalid.