Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

Get Annotation View/Coordinate 7 years 6 months ago #11257

  • saynas
  • saynas's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
Hello,
im trying to add a bubble popup after select an annotation (rectangle, circle..). but i need the annotion view or the coordinates of annotation.
i try to use OnAnnotClicked(PDFVPage vpage, Annotation annot) fuction.
to display the bubble popup i need the annot view to use it in this function:
leftTopWindow.show(viewofannot, Gravity.BOTTOM, 0); // display popup at the bottom of annot draw
[img]http://[/img]
Attachments:

Please Log in or Create an account to join the conversation.

Get Annotation View/Coordinate 7 years 6 months ago #11258

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
you can get the coordinates of the annot by calling GetRect() method.
For more info check this : www.radaeepdf.com/documentation/javadocs...ation.html#GetRect--

You can also change OnAnnotClicked listener and add x and y parameters when it is called.
public void OnAnnotClicked(PDFVPage vpage, Annotation annot, float x, float y);
So you will have the coordinates you have tapped.

Please Log in or Create an account to join the conversation.

Last edit: by Davide.
  • Page:
  • 1
Powered by Kunena Forum