# How to fill color and opacity to rectangle annotation tool?

**URL:** <https://pdfjs.community/t/how-to-fill-color-and-opacity-to-rectangle-annotation-tool/313>\
**Category:** Technical Support\
**Created:** [October 5, 2020, 11:36am UTC](https://pdfjs.community/t/how-to-fill-color-and-opacity-to-rectangle-annotation-tool/313 "2020-10-05T11:36:51Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![himani.sharma](https://avatars.discourse-cdn.com/v4/letter/h/e47774/32.png) [@himani.sharma](https://pdfjs.community/u/himani.sharma)\
**Post date:** [October 5, 2020, 11:36am UTC](https://pdfjs.community/t/how-to-fill-color-and-opacity-to-rectangle-annotation-tool/313/1 "2020-10-05T11:36:51Z")

</div>

**PDF.js Express Version**

**Detailed description of issue**  
Need to provide a green fill color with opacity 0.3 to the annotated part of pdf.

**Expected behaviour**

 ![side-preview](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/5e6e63f1a265d274ba4641a2f10c1d27c2b57427.png)

**Link to document**  
{Provide a link to the document in question if possible}

**Code snippet**  
{Provide a relevant code snippet}

---

_[View the full topic](https://pdfjs.community/t/how-to-fill-color-and-opacity-to-rectangle-annotation-tool/313)._
