Add Arrow Annotation

How to add Arrow Annotation in C#

Arrow annotation draws an arrow on the document like shown at the picture below. 

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

  • Box - defines annotation position at document page;
  • Opacity - allows to set annotation opacity;
  • PenColor - defines arrow color;
  • PenStyle - defines annotation line style (solid, dash, dot etc.);
  • PenWidth - defines arrow line width in pixels.

Below steps shows how to add Arrow annotation to document:

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

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

More resources

GitHub Examples

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