# Programmatically highlight area on pdf using coordinates or quads

**URL:** <https://pdfjs.community/t/programmatically-highlight-area-on-pdf-using-coordinates-or-quads/847>\
**Category:** Technical Support\
**Created:** [June 24, 2021, 12:24pm UTC](https://pdfjs.community/t/programmatically-highlight-area-on-pdf-using-coordinates-or-quads/847 "2021-06-24T12:24:59Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [June 25, 2021, 3:16pm UTC](https://pdfjs.community/t/programmatically-highlight-area-on-pdf-using-coordinates-or-quads/847/3 "2021-06-25T15:16:48Z")

</div>

Hi there,

Does it have to specifically be a highlight annotation? If you just have general coordinates a better solution might be to use a rectangle annotation and just set the fill color to look like a highlighter.

Logan

---

_[View the full topic](https://pdfjs.community/t/programmatically-highlight-area-on-pdf-using-coordinates-or-quads/847)._
