To get the rect of the annotation (type rectangle), you need to use:
* get annotation's box rectangle.<br/>
* this method require professional or premium license
* @return 4 elements: left, top, right, bottom in PDF coordinate system
final public float GetRect()
And then pass the rect to the above method.
If this is not what you are asking for, can you please explain with details?
thanks a lot for your answers.
The problem I have is that I don't know which one is the right Annotation I have to select.
For example after I add a Rect annotation, the OnPageDisplayed(Canvas canvas, PDFVPage vpage) method is called, returning the PDFVPage. I can access the annotation via vpage.GetPage().GetAnnot() but there are always more than one. If I do --> vpage.GetPage().GetAnnot(index).GetRect(), the coordinates returned are not right because the cropped area is different to the selected area with the Rect Annotation.