getAnnot

Get an annotation handle.
getAnnot([in] int idx, [out, retval] LONG *annotHandle)
This function returns an opaque handle for the idxth annotation on the annotation list constructed by the most recent call to buildAnnotList.

This handle can be passed to the various getAnnot... functions to retrieve information about the word.

VB6:
Dim annot As Long ' make annotation list for page 1 pdf.buildAnnotList 1 For i = 0 To pdf.getNumAnnots - 1 annot = pdf.getAnnot(i) ... Next i
buildAnnotList
getNumAnnots
getAnnotType
getAnnotRect
getAnnotContent