RadaeePDF.com :: Topic: GetAnnotCount always returns zero (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: GetAnnotCount always returns zero

GetAnnotCount always returns zero 2 years 2 months ago #8914

  • marco.klein
  • marco.klein's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 22
  • Karma: 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
Last Edit: 2 years 2 months ago by marco.klein.
The administrator has disabled public write access.

GetAnnotCount always returns zero 2 years 2 months ago #8915

  • marco.klein
  • marco.klein's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 22
  • Karma: 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.
The administrator has disabled public write access.

GetAnnotCount always returns zero 2 years 2 months ago #8917

  • radaee
  • radaee's Avatar
  • OFFLINE
  • Moderator
  • Posts: 825
  • Thank you received: 10
  • Karma: 43
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.
Last Edit: 2 years 2 months ago by radaee.
The administrator has disabled public write access.

GetAnnotCount always returns zero 2 years 2 months ago #8920

  • marco.klein
  • marco.klein's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 22
  • Karma: 0
That worked like a charm! Thanks!
The administrator has disabled public write access.
Powered by Kunena Forum