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

TOPIC:

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

  • yuxingliang
  • yuxingliang's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
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.

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

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

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
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 .

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

GetAnnotFromPoint(x,y) always returns null 8 years 1 month ago #10363

  • vitaliivasylenko
  • vitaliivasylenko's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
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" );

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

Last edit: by vitaliivasylenko.

GetAnnotFromPoint(x,y) always returns null 8 years 1 month ago #10365

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
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.

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

  • Page:
  • 1
Powered by Kunena Forum