- Posts: 22
- 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
GetAnnotCount always returns zero
- marco.klein
- Topic Author
- Offline
- Junior Member
-
Less
More
11 years 5 days ago - 11 years 5 days ago #8914
by marco.klein
GetAnnotCount always returns zero was created by marco.klein
Hi,
when trying to get the annotation count on the page, I'll do the following:
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
when trying to get the annotation count on the page, I'll do the following:
Code:
int annotationCount = getInternalPage().GetAnnotCount();
Kindest Regards
Marco
Last edit: 11 years 5 days ago by marco.klein.
- marco.klein
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 0
11 years 5 days ago #8915
by marco.klein
Replied by marco.klein on topic GetAnnotCount always returns zero
Nobody knows what is going on here? If this is not working, this is not going to be the chosen tool for our application.
11 years 4 days ago - 11 years 4 days ago #8917
by radaee
Replied by radaee on topic GetAnnotCount always returns zero
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.
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.
- marco.klein
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 0
11 years 4 days ago #8920
by marco.klein
Replied by marco.klein on topic GetAnnotCount always returns zero
That worked like a charm! Thanks!
Time to create page: 0.484 seconds