# GroupDocs.Annotation for Java
Java library that adds, edits, and removes annotations and markup — area and shape annotations, text highlight/underline/strikeout, watermarks, image and link stamps, and threaded comments — on PDF, Word, Excel, PowerPoint, images, CAD, Visio, and email files. No Microsoft Office or Adobe Acrobat required.
{{< button style="primary" link="https://releases.groupdocs.com/annotation/java/release-notes/" >}} Release notes {{< /button >}}
{{< button style="primary" link="https://releases.groupdocs.com/annotation/java/" >}} {{< icon "gdoc_download" >}} Download from Maven {{< /button >}}
{{< button style="primary" link="https://products.groupdocs.app/annotation/family" >}} Online app {{< /button >}}
[GroupDocs.Annotation for Java](https://products.groupdocs.com/annotation/java/) is a document annotation API that adds, edits, and removes annotations and markup across many document formats. It provides a unified, format-independent interface to draw area and shape annotations, mark up text with highlights, underlines, strikeouts, and squiggly lines, stamp watermarks, images, and hyperlinks, add editable text fields, and attach threaded review comments — then save the result back to its original format with optional page-range and annotation-type filters.
## Quick example
```java
// Add an area annotation to the first page of a PDF
Annotator annotator = new Annotator("input.pdf");
try {
AreaAnnotation area = new AreaAnnotation();
area.setBox(new Rectangle(100, 100, 200, 80)); // x, y, width, height
area.setPageNumber(0); // 0-based page index
area.setBackgroundColor(65535); // ARGB integer
area.setMessage("Review this section");
annotator.add(area);
annotator.save("annotated.pdf");
} finally {
annotator.dispose();
}
```
## Features
- **Shape Annotations**: Draw area, ellipse, arrow, point, distance, and polyline annotations with configurable color and opacity.
- **Text Markup**: Highlight, underline, strikeout, and squiggly-mark text, replace or redact text, and redact embedded resources.
- **Content Annotations**: Stamp watermarks, image annotations, hyperlinks, and editable text fields onto a document.
- **Comments & Replies**: Attach threaded review comments to any annotation with user and timestamp information.
- **Manage Annotations**: List, update, and remove annotations — all of them or filtered by annotation type.
- **Save Filters**: Render only selected annotation types or a specific page range when saving the result.
## Supported File Formats
GroupDocs.Annotation supports a wide range of file formats. For a complete list, see the [full list of supported formats](https://docs.groupdocs.com/annotation/java/getting-started/supported-document-formats/).
- **Microsoft Office** (Word, Excel, PowerPoint)
- **PDF**
- **Images** (JPEG, PNG, BMP, TIFF)
- **CAD** (DWG, DXF)
- **Visio Diagrams** (VSD, VSDX)
- **Email** (EML, EMLX)
- **OpenDocument** (ODT, ODS, ODP)
## Getting Started
To get started, refer to the [System Requirements](https://docs.groupdocs.com/annotation/java/getting-started/system-requirements/), [Supported File Formats](https://docs.groupdocs.com/annotation/java/getting-started/supported-document-formats/), [Installation](https://docs.groupdocs.com/annotation/java/getting-started/installation/), and [How to Run Examples](https://docs.groupdocs.com/annotation/java/getting-started/how-to-run-examples/) sections for setup instructions and your first annotation.
## Developer Guide
For practical code examples covering basic and advanced annotation, see the [Basic Usage](https://docs.groupdocs.com/annotation/java/basic-usage/) and [Advanced Usage](https://docs.groupdocs.com/annotation/java/advanced-usage/) sections. They walk through loading documents, adding every annotation type, attaching comments and replies, listing and removing annotations, and saving results with page-range and annotation-type filters.
## Technical Support
If you experience any issues or have suggestions, use the [GroupDocs Free Support Forum](https://forum.groupdocs.com/c/annotation/) or the [Paid Support Helpdesk](https://helpdesk.groupdocs.com/). For licensing and evaluation questions, see [Licensing and Subscription](https://docs.groupdocs.com/annotation/java/getting-started/licensing-and-subscription/).