GroupDocs.Annotation at a Glance

Add professional-grade document annotation to your .NET applications

Illustration annotation

Add Text Markup

GroupDocs.Annotation for .NET lets you highlight, underline, strike out, squiggly-underline, redact, or replace text. Supported across a wide variety of formats including PDFs and Office documents, this feature streamlines document review and collaboration.

Draw Graphic Annotations

Add area, ellipse, point, arrow, distance, and polyline shapes with configurable pen and fill colors to call out regions and measurements on a page.

Comments and Replies

Attach an author and a threaded discussion of replies to any annotation to support structured review and approval workflows.

Manage and Exchange Annotations

List, update, and remove annotations, filter by type, render document previews, and import or export annotations as XML.

Platform Independence

GroupDocs.Annotation for .NET is compatible with a wide range of operating systems, development frameworks, and package managers.

Amazon
Docker
Azure
VS Code
ReSharper
macOS
Linux
NuGet

Supported File Formats

GroupDocs.Annotation for .NET supports operations with the following file formats.

MS Office Formats

  • Word: DOCX, DOC, DOCM, DOT, DOTX, DOTM, RTF
  • Excel: XLSX, XLS, XLSM, XLSB, ODS
  • PowerPoint: PPT, PPTX, PPS, PPSX

Other Office Formats

  • Portable: PDF
  • OpenDocument: ODT, ODP
  • Diagram: VSD, VSDX

Other Formats

  • Images: BMP, JPEG, PNG, TIFF
  • CAD: DWG, DXF
  • Email: EML, EMLX

GroupDocs.Annotation for .NET Features

Add and manage annotations in PDFs, Office files, and images with high speed and accuracy.

Feature icon

Text Markup

Highlight, underline, strike out, or squiggly-underline selected text in any supported document.

Feature icon

Graphic Shapes

Draw area, ellipse, arrow, point, distance, and polyline annotations with custom colors.

Feature icon

Watermarks & Stamps

Add text watermarks, image stamps, and editable text fields onto a document page.

Feature icon

Get and Remove

Read every annotation in a document, then remove by id, type, or instance.

Feature icon

Comments & Replies

Attach threaded replies with user and timestamp metadata to any annotation.

Feature icon

Import and Export

Save a document’s annotations to XML and load them back into another document.

Code Samples

Typical usage examples of GroupDocs.Annotation for .NET in action

Highlight Text

GroupDocs.Annotation for .NET enables C# developers to highlight text and add markup to documents:

Highlight Text in a Document

// Open the document with an Annotator instance
using (Annotator annotator = new Annotator("input.pdf"))
{
    // Create a text highlight annotation defined by quad points
    HighlightAnnotation highlight = new HighlightAnnotation
    {
        PageNumber = 0,
        FontColor = 65535,
        Points = new List<Point>
        {
            new Point(80, 730), new Point(240, 730),
            new Point(240, 750), new Point(80, 750)
        }
    };

    // Add the highlight to the document
    annotator.Add(highlight);

    // Save the annotated document
    annotator.Save("annotated.pdf");
}

Manage Annotations

Use our API to read and remove annotations from a document:

Get and Remove Annotations

// Open an annotated document with an Annotator instance
using (Annotator annotator = new Annotator("annotated.pdf"))
{
    // Retrieve all annotations from the document
    List<AnnotationBase> annotations = annotator.Get();

    // Remove the first annotation
    annotator.Remove(annotations[0]);

    // Save the updated document
    annotator.Save("output.pdf");
}

Stamp a Watermark

GroupDocs.Annotation for .NET lets C# developers stamp a text watermark across document pages:

Stamp a Watermark on a Document

// Open the document with an Annotator instance
using (Annotator annotator = new Annotator("input.pdf"))
{
    // Create a diagonal text watermark and place it on the first page
    WatermarkAnnotation watermark = new WatermarkAnnotation
    {
        Box = new Rectangle(100, 100, 200, 100),
        Text = "CONFIDENTIAL",
        FontColor = 16711680,
        FontSize = 24,
        Angle = 45,
        Opacity = 0.5,
        PageNumber = 0
    };

    // Add the watermark and save the result
    annotator.Add(watermark);
    annotator.Save("annotated.pdf");
}

Ready to get started?

Download GroupDocs.Annotation for free or get a trial license for full access!

Useful resources

Explore documentation, code samples, and community support to enhance your experience.

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English