RadaeePDF.com :: Topic: GetAnnotFromPoint(x,y) always returns null (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: GetAnnotFromPoint(x,y) always returns null

GetAnnotFromPoint(x,y) always returns null 2 years 2 months ago #8967

I have trouble in trying annotation function, when tap on a annotation, the GetAnnotFromPoint(x,y) always return null. I have used the method like this:
1) Global.Init( this );
2)m_doc.Open( bookPath, "123456q" );
3)m_reader.PDFOpen(m_doc, false, this);
Is there any problem? Or, what's the pre-condition of correctly GetAnnotFromPoint?
I used your demo application and the same document, it runs ok when click on annotation and turn to the destination page. I just replace the book browser, hide controls that added on the page. The way of opening the document is almost the same.
The administrator has disabled public write access.

GetAnnotFromPoint(x,y) always returns null 2 years 2 months ago #8968

  • Davide
  • Davide's Avatar
  • OFFLINE
  • Moderator
  • Posts: 663
  • Thank you received: 43
  • Karma: 12
Hi,
GetAnnotFromPoint(x,y) can be invoked after ObjsStart or Render or RenderToBmp and this method is valid only in professional or premium version.
For more info check this.
The administrator has disabled public write access.

GetAnnotFromPoint(x,y) always returns null 1 year 4 months ago #10363

Hi, i have the same problem, GetAnnotFromPoint() always returns null.

I'm using your premium license:
Init( act, 2, "radaee", "This email address is being protected from spambots. You need JavaScript enabled to view it.", "LNJFDN-C89QFX-9ZOU9E-OQ31K2-FADG6Z-XEBCAO" );
Last Edit: 1 year 4 months ago by vitaliivasylenko.
The administrator has disabled public write access.

GetAnnotFromPoint(x,y) always returns null 1 year 4 months ago #10365

  • radaee
  • radaee's Avatar
  • OFFLINE
  • Moderator
  • Posts: 825
  • Thank you received: 10
  • Karma: 43
hi.
if u are using standard license or no license actived, it always return null.
the demo shall works, which actived a premium license inside.
if u implement event by yourself.
u shall convert screen coordinate to PDF coordinate, then pass PDF coordinate to GetAnnotFromPoint()
others, if u got Page object by Document.GetPage() u shall invoke Page.ObjsStart() first.
The administrator has disabled public write access.
Powered by Kunena Forum