getAnnot

The getAnnot method returns the annotation object according the name and page.

 

Syntax

getAnnot(System.Int32 nPage, System.String cName);

 

Parameters

nPage

Page index where the annotation will be searched.  Page Index = Page number -1.  Default value 0.

cName

Name of the annotation object.

 

Return Value

Returns Annotation object, otherwise null.

 

Remarks

Member of doc.

 

Example

var obj = this.getAnnot(0, "myAnnotation");
 
if (ann == obj)
    console.println("Annotation doesn't exist");
else
    console.println("Found it!);