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

TOPIC:

Stacked Annotations 2 years 3 months ago #15686

  • ntbo
  • ntbo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
Hi there,
we've got a PDF with two annotations containing URIs stacked on top of each other, so there is a bigger annotation containing an URI and within the bigger annotation is another smaller one containing a different URI.The Problem is that OnPDFOpenURI() is always called with the URI of the underlying annotation even though both annotations are visible when I set Global.hideAnnots(false).
The PDF was not created with Radaee but other PDF Readers are able to retrieve the URI from the annotation on top when clicked in that area.

Is there a way to achieve this with the Radaee Library as well?

Thanks in advance

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

Stacked Annotations 2 years 3 months ago #15687

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
Dear ntbo,
      as you see annotations are layered and currently, the RadaeePDF framework is resolving the touched layer using its coordinates and z-order.
May you provide your PDF file so we will evaluate how to deal with your request.

 

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

Stacked Annotations 2 years 3 months ago #15688

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
dear user:
we supply 2 ways to get annotation:
1. from point coordinate, this always get top one.
2. get annotation by index.
 

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

Stacked Annotations 2 years 3 months ago #15689

  • ntbo
  • ntbo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
Hey Radaee,

thanks for your reply, unfortunately I am not able to share the original PDF we've got a problem with, but if needed I can create an example one with the same layered annotations.

But regarding your explanation, that would mean, we should (at least in theory) get the correct result, right? Since onSingleTapConfirmed(MotionEvent e) calls GetAnnotFromPoint() with the motionEvent coordinates and that should give us the URI from the top annotation, unfortunately this is not the case. Any idea what might be wrong here?

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

Stacked Annotations 2 years 3 months ago #15690

  • ntbo
  • ntbo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
Hello everyone,

are there any updates from your side? Anything that can help me with this issue?

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

  • Page:
  • 1
Powered by Kunena Forum