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

GetAnnotCount always returns zero

More
11 years 5 days ago - 11 years 5 days ago #8914 by marco.klein
Hi,

when trying to get the annotation count on the page, I'll do the following:
Code:
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: 11 years 5 days ago by marco.klein.
More
11 years 5 days ago #8915 by marco.klein
Nobody knows what is going on here? If this is not working, this is not going to be the chosen tool for our application.
More
11 years 4 days ago - 11 years 4 days ago #8917 by radaee
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: 11 years 4 days ago by radaee.
More
11 years 4 days ago #8920 by marco.klein
That worked like a charm! Thanks!
Time to create page: 0.484 seconds
Powered by Kunena Forum