Get Annotation View/Coordinate - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Get Annotation View/Coordinate

Get Annotation View/Coordinate 2 years 1 month ago #11257

  • saynas
  • saynas's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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://
Attachments:

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

Get Annotation View/Coordinate 2 years 1 month ago #11258

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 17
  • 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