getAnnotRect
Get the bounding box of an annotation.
getAnnotRect([in] LONG annotHandle, [out] double *xMin, [out] double *yMin,
[out] double *xMax, [out] double *yMax)
This function gets the bounding box of an annotation (whose handle was
obtained with
getAnnot
).
The xMin
, yMin
, xMax
,
and yMax
coordinates are in the PDF coordinate space.
VB:
Dim annot As Long
Dim type As String
Dim xMin As Double, yMin As Double, xMax As Double, yMax As Double
' make annotation list for page 1
pdf.buildAnnotList(1)
For i = 0 To pdf.getNumAnnots() - 1
annot = pdf.getAnnot(i)
type = pdf.getAnnotType(annot)
pdf.getAnnotRect(annot, xMin, yMin, xMax, yMax)
...
Next i