GetAnnotCount always returns zero - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: GetAnnotCount always returns zero

GetAnnotCount always returns zero 3 years 1 week ago #8914

  • marco.klein
  • marco.klein's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
Hi,

when trying to get the annotation count on the page, I'll do the following:
int annotationCount = getInternalPage().GetAnnotCount();
But here, I always get zero, no matter how many annotations are placed onto the page. What am I doing wrong? Proper premium trial is activated.

Kindest Regards
Marco

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

Last Edit: by marco.klein.

GetAnnotCount always returns zero 3 years 1 week ago #8915

  • marco.klein
  • marco.klein's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
Nobody knows what is going on here? If this is not working, this is not going to be the chosen tool for our application.

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

GetAnnotCount always returns zero 3 years 1 week ago #8917

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 830
  • Karma: 43
  • Thank you received: 10
1. this method only works under professional or premium license, the demo project default actived premium license.
2. u shall invoke Page.ObjsStart() or Page.Render first.
codes like:
Page page = doc.GetPage(pageno);
page.ObjsStart();
page.GetAnnotCount();

and not forget invoke page.Close() after using annotations.

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

Last Edit: by radaee.

GetAnnotCount always returns zero 3 years 1 week ago #8920

  • marco.klein
  • marco.klein's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
That worked like a charm! Thanks!

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

  • Page:
  • 1
Powered by Kunena Forum