GroupDocs.Annotation for Java makes it easy to annotate Excel spreadsheets:
- Open the Excel file with an Annotator instance.
- Create and configure the annotation you need.
- Add the annotation to the spreadsheet.
- Save the annotated Excel file.
GroupDocs.Annotation for Java makes it easy to annotate Excel spreadsheets:
// Annotate an Excel spreadsheet
// Open the spreadsheet with an Annotator instance
Annotator annotator = new Annotator("input.xlsx");
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 spreadsheet
annotator.save("annotated.xlsx");
} finally {
annotator.dispose();
}
implementation 'com.groupdocs:groupdocs-annotation:25.6.0'
Add every annotation type to Excel spreadsheets and manage them with a simple API.

Highlight, underline, strike out, or replace text in Excel files.
Draw shapes and stamp watermarks or images onto Excel worksheets.
Get, remove, import, and export Excel annotations.
// Open the annotated spreadsheet
Annotator annotator = new Annotator("annotated.xlsx");
try {
// Get all annotations
List<AnnotationBase> annotations = annotator.get();
// Inspect each annotation
for (AnnotationBase annotation : annotations) {
System.out.println(annotation.getMessage());
}
// Save the spreadsheet
annotator.save("output.xlsx");
} 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:

