RadaeePDF.com :: Topic: Which page have annotation or not (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: Which page have annotation or not

Which page have annotation or not 3 years 3 months ago #6875

  • Mahesh007
  • Mahesh007's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
  • Karma: 0
i want to know which page isannoted in PDFDoc.please help on this.
The administrator has disabled public write access.

Which page have annotation or not 3 years 3 months ago #6876

  • Davide
  • Davide's Avatar
  • OFFLINE
  • Moderator
  • Posts: 707
  • Thank you received: 53
  • Karma: 15
Hi,

try this to get page annot count:

Page myPage = m_doc.GetPage(pageno);
int numberOfAnnot = myPage.GetAnnotCount();

and then check if numberOfAnnot > 0
The administrator has disabled public write access.

Which page have annotation or not 3 years 3 months ago #6910

  • Mahesh007
  • Mahesh007's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
  • Karma: 0
pagecount is working but page annotation count always give me value 0 . please help on this



PDF_ERR err = 0;
m_doc = [[PDFDoc alloc] init];
err = [m_doc open:pdfPath :@""];
if( m_doc == NULL )
{
switch( err )
{
case err_password:
NSLog(@"Error %d",2);
break;
default:
NSLog(@"Error %d",0);
}
}
NSLog(@"no of page in doc %d",m_doc.pageCount);
PDFPage *page = [m_doc page:0];
NSLog(@"annotate %d",page.annotCount)
PDFPage *page1 = [m_doc page:1];
NSLog(@"annotate %d",page1.annotCount);
The administrator has disabled public write access.

Which page have annotation or not 3 years 3 months ago #6917

  • radaee
  • radaee's Avatar
  • OFFLINE
  • Moderator
  • Posts: 825
  • Thank you received: 10
  • Karma: 43
like this:
Page page = doc.GetPage(pageNO);
page.ObjsStart();//it is required.
int annot_count = page.getAnnotCount();
//...
page.Close();
Last Edit: 3 years 3 months ago by .
The administrator has disabled public write access.
Powered by Kunena Forum