# Double rectangle annotations are being created if I convert text highlight into rectangle annotation

**URL:** <https://pdfjs.community/t/double-rectangle-annotations-are-being-created-if-i-convert-text-highlight-into-rectangle-annotation/1055>\
**Category:** Technical Support\
**Created:** [October 8, 2021, 1:17pm UTC](https://pdfjs.community/t/double-rectangle-annotations-are-being-created-if-i-convert-text-highlight-into-rectangle-annotation/1055 "2021-10-08T13:17:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/ffbcd25c7d423db8d5acd5db201c272f4db306dd.png) [@system](https://pdfjs.community/u/system)\
**Post date:** [October 8, 2021, 1:17pm UTC](https://pdfjs.community/t/double-rectangle-annotations-are-being-created-if-i-convert-text-highlight-into-rectangle-annotation/1055/2 "2021-10-08T13:17:25Z")

</div>

**Hello, I’m Ron, an automated tech support bot 🤖**

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:
- [PDF.js Express annotations](https://pdfjs.express/documentation/annotation/overview)
- [Create rectangle annotations in PDF.js Express - Other examples](https://pdfjs.express/documentation/annotation/create-annotation-rectangle#other-examples)
- [Customize annotation tools - Extend built in tools](https://pdfjs.express/documentation/annotation/customizing-tools.8#extend-built-in-tools)

APIs:
- [Core.Annotations.TextHighlightAnnotation - new TextHighlightAnnotation( [initializer])](https://pdfjs.express/api/Core.Annotations.TextHighlightAnnotation.html#TextHighlightAnnotation__anchor)
- [PDF.js Express Utilities](https://pdfjs.express/api/utils/index.html#__anchor)
- [Core.Annotations.RectangleAnnotation - new RectangleAnnotation( [initializer])](https://pdfjs.express/api/Core.Annotations.RectangleAnnotation.html#RectangleAnnotation__anchor)

Forums:
- [Multiple annotations inside one pdf is creating an incorrect xfdf object](https://pdfjs.community/t/multiple-annotations-inside-one-pdf-is-creating-an-incorrect-xfdf-object/1054/1)
- [Clicking on highlighted word should draw a box annotation around it](https://pdfjs.community/t/clicking-on-highlighted-word-should-draw-a-box-annotation-around-it/404/2)
- [Annotations are getting displaced when zoom in and out are done abit fast](https://pdfjs.community/t/annotations-are-getting-displaced-when-zoom-in-and-out-are-done-abit-fast/567/1)

---

_[View the full topic](https://pdfjs.community/t/double-rectangle-annotations-are-being-created-if-i-convert-text-highlight-into-rectangle-annotation/1055)._
