Add annotation to the document

What is a document annotation?

Annotation is a textual or graphic notes, comments and remarks attached to a specific part of a document content - sections, paragraphs, sentences or even words. Annotations are often used by a group of collaborators to edit and review documents in a quick and handy manner - the document is shared with reviewers who then mark it up and add notes. Then assigned team members read these annotations and modify document content accordingly.

Today annotations can be programmatically added to a documents and images of various  types - PDF, Microsoft Word and Open Document text documents, Microsoft Excel spreadsheets, Microsoft PowerPoint presentations, PNG / JPG / TIFF images etc. 

Add annotation to the document

GroupDocs.Annotation allows to apply various annotation types to the different document formats. Supported annotations list is described in a table below. 

List of supported annotations

AnnotationDescription
AreaRectangle annotation that can be applied in random place on document page.
ArrowAnnotation in the form of pointer or arrow.
DistanceAnnotation looks like arrow but with arrows at both line ends. For most document formats this annotation can contains text value (this feature not support for Word documents).
EllipseCircle-based annotation.
LinkRepresents a web-link that can be applied to the part of text. This annotation supports only for PDF, Word processing text documents and presentations.
PointRepresents abstract point annotation.
PolylineRepresents free-hand drawing line.
Resource redactionRepresents free rectangle annotation with fixed position and black background. For this annotation is impossible to move it (in result document), and change any visual properties.
Text fieldThis is a rectangle annotation with some text inside rectangle area.
HighlightThis annotation highlight text. Applicable only for text.
Text redactionSame as resource redaction annotation, but applicable only for text.
ReplacementReplace original document text by user text. Applicable only for text.
StrikeoutMake selected text strikeout. Applicable only for text.
UnderlineMake selected text underline. Applicable only for text.
WatermarkAdd text watermark. PageNumber for this annotation is ignored, because annotation adds to all document pages. For some document formats can set Angle property, that determines annotation angle rotation.

For detailed explanation about how to apply different annotation types to a document, please check these guides: