Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

GetAnnotFromPoint(x,y) always returns null

More
10 years 9 months ago #8967 by yuxingliang
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.
More
10 years 9 months ago #8968 by Davide
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 .
More
10 years 1 week ago - 10 years 1 week ago #10363 by vitaliivasylenko
Hi, i have the same problem, GetAnnotFromPoint() always returns null.

I'm using your premium license:
Init( act, 2, "radaee", "[email protected]", "LNJFDN-C89QFX-9ZOU9E-OQ31K2-FADG6Z-XEBCAO" );
Last edit: 10 years 1 week ago by vitaliivasylenko.
More
10 years 6 days ago #10365 by radaee
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.
Time to create page: 0.409 seconds
Powered by Kunena Forum