- Posts: 3
- Thank you received: 0
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
- yuxingliang
- Topic Author
- Offline
- New Member
-
Less
More
10 years 9 months ago #8967
by yuxingliang
GetAnnotFromPoint(x,y) always returns null was created 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.
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.
10 years 9 months ago #8968
by Davide
Replied by Davide on topic GetAnnotFromPoint(x,y) always returns null
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 .
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 .
- vitaliivasylenko
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
10 years 1 week ago - 10 years 1 week ago #10363
by vitaliivasylenko
Replied by vitaliivasylenko on topic GetAnnotFromPoint(x,y) always returns null
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" );
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.
10 years 6 days ago #10365
by radaee
Replied by radaee on topic GetAnnotFromPoint(x,y) always returns null
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.
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