# Is it possible to get annotation color from Annotation object

**URL:** <https://pdfjs.community/t/is-it-possible-to-get-annotation-color-from-annotation-object/302>\
**Category:** Technical Support\
**Created:** [September 28, 2020, 2:53pm UTC](https://pdfjs.community/t/is-it-possible-to-get-annotation-color-from-annotation-object/302 "2020-09-28T14:53:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivek.sonawane](https://avatars.discourse-cdn.com/v4/letter/v/e95f7d/32.png) [@vivek.sonawane](https://pdfjs.community/u/vivek.sonawane)\
**Post date:** [September 28, 2020, 2:53pm UTC](https://pdfjs.community/t/is-it-possible-to-get-annotation-color-from-annotation-object/302/1 "2020-09-28T14:53:00Z")

</div>

Hi,  
We are trying to get the color for changed annotation after any operation like modify/create.  
how can we get color for modified or newly created annotation? is it possible to do so?

Thank you,  
Vivek Sonawane

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [September 29, 2020, 2:59pm UTC](https://pdfjs.community/t/is-it-possible-to-get-annotation-color-from-annotation-object/302/2 "2020-09-29T14:59:11Z")

</div>

Hi,

You can get the StrokeColor and FillColor properties right off the annotation object.

```javascript
  const { annotManager } = instance;

  annotManager.on('annotationChanged', (annots) => { 
    annots.forEach(annot => {
      const { StrokeColor, FillColor } = annot;
      console.log(StrokeColor, FillColor);
    })
  })

```

Thanks!  
Logan
