// حاشیهنویسی یک صفحه گسترده Excel
// صفحه گسترده را با یک نمونه Annotator باز کنید
Annotator annotator = new Annotator("input.xlsx");
try {
// یک حاشیهنویسی ناحیهای ایجاد کنید
AreaAnnotation area = new AreaAnnotation();
area.setBox(new Rectangle(100, 100, 200, 80));
area.setBackgroundColor(65535);
area.setPageNumber(0);
area.setMessage("Important");
// حاشیهنویسی را اضافه کنید
annotator.add(area);
// صفحه گسترده حاشیهنویسیشده را ذخیره کنید
annotator.save("annotated.xlsx");
} finally {
annotator.dispose();
}