public Annotation createTextAnnot(
    Rect rect, 
    string text, 
    Encoder encoder = null)

Creates a new Annotation instance for the page.

Parameters

rect

A Rectangle where the annotation is displayed.

text

The text to be displayed.

encoder

An Encoder instance which is used to encode the text. If it is null, PDFDocEncoding is used.

Returns

returns an instance of a Annotation object. If it failed, it returns null.