GroupDocs.Annotation for Java makes it easy to annotate Word documents:
- Open the Word document with an Annotator instance.
- Create and configure the annotation you need.
- Add the annotation to the document.
- Save the annotated Word document.
GroupDocs.Annotation for Java makes it easy to annotate Word documents:
// Annotate a Word document
// Open the document with an Annotator instance
Annotator annotator = new Annotator("input.docx");
try {
// Create an area annotation
AreaAnnotation area = new AreaAnnotation();
area.setBox(new Rectangle(100, 100, 200, 80));
area.setBackgroundColor(65535);
area.setPageNumber(0);
area.setMessage("Important");
// Add the annotation
annotator.add(area);
// Save the annotated document
annotator.save("annotated.docx");
} finally {
annotator.dispose();
}
implementation 'com.groupdocs:groupdocs-annotation:25.6.0'
Add every annotation type to Word documents and manage them with a simple API.

Highlight, underline, strike out, or replace text in Word documents.
Draw shapes and stamp watermarks or images onto Word pages.
Get, remove, import, and export Word annotations.
// Open the annotated document
Annotator annotator = new Annotator("annotated.docx");
try {
// Get all annotations
List<AnnotationBase> annotations = annotator.get();
// Inspect each annotation
for (AnnotationBase annotation : annotations) {
System.out.println(annotation.getMessage());
}
// Save the document
annotator.save("output.docx");
} finally {
annotator.dispose();
}
implementation 'com.groupdocs:groupdocs-annotation:25.6.0'
Download GroupDocs.Annotation for free or get a trial license for full access!
Explore documentation, code samples, and community support to enhance your experience.
GroupDocs.Annotation for Java supports annotating documents across many file formats:

