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

TOPIC:

GetAnnotCount always returns zero 8 years 11 months ago #8914

  • marco.klein
  • marco.klein's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • 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 8 years 11 months ago #8915

  • marco.klein
  • marco.klein's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • 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 8 years 11 months ago #8917

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
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 8 years 11 months ago #8920

  • marco.klein
  • marco.klein's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • 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