# 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:** 1

<div class="post-metadata">

**Author:** ![tomasz.trillo](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@tomasz.trillo](https://pdfjs.community/u/tomasz.trillo)\
**Post date:** [August 23, 2022, 10:28am UTC](https://pdfjs.community/t/texthighlightannotation-does-not-highlight-correct-text-height/1973/1 "2022-08-23T10:28:54Z")

</div>

**Which product are you using?**  
PDF.js Express Plus

8.7

**Detailed description of issue**  
We are highlighting Text with TextHighlight tool on documents that where scanned and got a full ocr on them. The TextHighlight tool does not highlight the correct text height. Seems to just highlight half of the needed height.  
Thats a problem for us, because we are exporting xfdf after annotation has been done and need correct coordinates in the xfdf. Even the coordinates in xfdf just show us half of the needed text height.  
Adobe Reader does highlight the correct text height, though.

**Expected behaviour**  
Highlight full text height like Adobe Reader TextHighlight tool does.

**Does your issue happen with every document, or just one?**  
It happens on all scanned documents with ocr in it.

**Link to document**  
([Easyupload.io - Upload files for free and transfer big files easily.](https://easyupload.io/vm4eek)

**Code snippet**  
Not in code. Just viewer issue.

Maybe this should be filed as bug also?  
Is there a way to set the TextHighlight heigt programatically?

---

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