# TextHighlightAnnotation does not highlight correct text height

**URL:** <https://pdfjs.community/t/texthighlightannotation-does-not-highlight-correct-text-height/1973>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [August 23, 2022, 10:28am UTC](https://pdfjs.community/t/texthighlightannotation-does-not-highlight-correct-text-height/1973 "2022-08-23T10:28:54Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [August 23, 2022, 10:28am UTC](https://pdfjs.community/t/texthighlightannotation-does-not-highlight-correct-text-height/1973/3 "2022-08-23T10:28:59Z")

</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)
- [Customize display authors for annotations - Map a userId to a Display Author](https://pdfjs.express/documentation/annotation/display-authors#map-a-userid-to-a-display-author)
- [Understand coordinates in PDF.js Express - Convert between PDF and viewer coordinates](https://pdfjs.express/documentation/viewer/coordinates.8#convert-between-pdf-and-viewer-coordinates)

APIs:
- [Core.Annotations.TextHighlightAnnotation - new TextHighlightAnnotation( [initializer])](https://pdfjs.express/api/Core.Annotations.TextHighlightAnnotation.html#TextHighlightAnnotation__anchor)
- [TextHighlightAnnotation - new TextHighlightAnnotation()](https://pdfjs.express/api/TextHighlightAnnotation.html#TextHighlightAnnotation__anchor)
- [Core.Annotations.TextWidgetAnnotation - new TextWidgetAnnotation(field, options)](https://pdfjs.express/api/Core.Annotations.TextWidgetAnnotation.html#TextWidgetAnnotation__anchor)

Forums:
- [Issue with multiple annotations in single xfdf](https://pdfjs.community/t/issue-with-multiple-annotations-in-single-xfdf/203/3)
- [Overlapped Annotations doesn’t have measurements in it (getContents() is undefined)](https://pdfjs.community/t/overlapped-annotations-doesnt-have-measurements-in-it-getcontents-is-undefined/253/8)
- [Hyperlinks not being detected in pdf.js viewer](https://pdfjs.community/t/hyperlinks-not-being-detected-in-pdf-js-viewer/1925/4)

  
  

Share how you are using PDF.js Express in your organization you could win a **$500 Amazon gift card. All participants will receive 6 months of PDF.js Express+ for free**. Learn more [here](https://utm.guru/ueQNw)

---

_[View the full topic](https://pdfjs.community/t/texthighlightannotation-does-not-highlight-correct-text-height/1973)._
