New Forum | Previous | Next | (P-PDF) Developers
Topic: getAnnotation problem in Acrobat 7 (VB/VC++)
Conf: (P-PDF) Developers, Msg: 138625
Date: 8/27/2005 07:41 PM
I am trying to read annotation in a PDF using VB. If there are 3 notes, then the function GetNumAnnots returns 6. Then there is a loop to read the annotation using GetAnnot(AnnotIndex) - AnnotIndex is 0 to 5.
This function returns same annotation more than once - with the same Subtype. Hence all the annotation are not read.
In VC++, the GetAnnot API reads couple of notes correctly, but returns NULL for the remaining notes. In the loop if GetContents is called on the Annotation objet after reading a new note, contents of the first note is shown, even if the object is new.
Please give your suggestions on this.