Add Text Field Annotation

How to add Text Field Annotation in C#

The Text field annotation adds rectangle with a text inside, like shown at the picture below. 

There is an ability to specify the next properties for TextFieldAnnotation type:

Follow these steps to add TextField annotation to document: 

  • Instantiate Annotator object with input document path or stream;
  • Instantiate TextFieldAnnotation object with desired properties (position, page number, etc);
  • Call Add method and pass TextFieldAnnotation object;
  • Call Save method with resultant document path or stream.

The following code demonstrates how to add TextFieldAnnotation to the document:

More resources

GitHub Examples

You may easily run the code above and see the feature in action in our GitHub examples: