Print Page | Close Window

Annotation Text

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2291
Printed Date: 10 Dec 25 at 12:02PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Annotation Text
Posted By: jcorral
Subject: Annotation Text
Date Posted: 04 Jun 12 at 6:50PM
Hello,

it´s possible get the text for all the notes in a file and his page number?

Thanks



Replies:
Posted By: AndrewC
Date Posted: 07 Jun 12 at 2:15PM

The following code should do what you need.  You will need to read the reference manual to see what other options are available.

for (page = 1; page <= QP.PageCount();page++)
{
  QP.SelectPage(page);
  int count = QP.AnnotationCount();

  for (int i=1;i<=count;i++)
  {
    string text = QP.GetAnnotStrProperty(i, 102);  // Contents.
  
    MessageBox.Show("page = " + page.ToString() + " Contents = " + text);
  }


Posted By: jcorral
Date Posted: 07 Jun 12 at 6:23PM
perfect, thanks



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk