# 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:** 1\
**Showing post:** 2

<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

---

_[View the full topic](https://pdfjs.community/t/is-it-possible-to-get-annotation-color-from-annotation-object/302)._
