# Inconsistent highlight annotations - sometimes blocking text

**URL:** <https://pdfjs.community/t/inconsistent-highlight-annotations-sometimes-blocking-text/2072>\
**Category:** Technical Support\
**Created:** [September 29, 2022, 12:40am UTC](https://pdfjs.community/t/inconsistent-highlight-annotations-sometimes-blocking-text/2072 "2022-09-29T00:40:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![elliot](https://avatars.discourse-cdn.com/v4/letter/e/858c86/32.png) [@elliot](https://pdfjs.community/u/elliot)\
**Post date:** [September 29, 2022, 12:40am UTC](https://pdfjs.community/t/inconsistent-highlight-annotations-sometimes-blocking-text/2072/1 "2022-09-29T00:40:14Z")

</div>

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

**PDF.js Express Version**  
8.7

**Detailed description of issue**  
Sometimes highlights block the text, sometimes they don’t. In this screenshot you can see both happening.

**Expected behaviour**  
{Provide a screenshot or description of the expected behaviour}

**Does your issue happen with every document, or just one?**  
It seems to be inconsistent when this does happen… for another user, they see all the highlights… but this is how it looks for me.

 ![Screen Shot 2022-09-28 at 8.40.45 PM](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/7/798749810532b898907116901903053085e62ada.png)

---

<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:** [September 29, 2022, 12:40am UTC](https://pdfjs.community/t/inconsistent-highlight-annotations-sometimes-blocking-text/2072/3 "2022-09-29T00:40:19Z")

</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:
- [Advanced Search - Add a highlight annotation to each search result](https://pdfjs.express/documentation/search/advanced-search#add-a-highlight-annotation-to-each-search-result)
- [Hiding annotations in WebViewer notes panel - setCustomNoteFilter](https://pdfjs.express/documentation/ui-customization/ui-customization-notes-panel#setcustomnotefilter)
- [Create highlight annotations in PDF.js Express - Other examples](https://pdfjs.express/documentation/annotation/create-annotation-highlight#other-examples)

APIs:
- [UndefinedbeforeDocumentLoaded](https://pdfjs.express/api/namespaces.list.html#event:beforeDocumentLoaded__anchor)
- [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)

Forums:
- [Integrate PDF.JS Express in Salesforce Lightning Component](https://pdfjs.community/t/integrate-pdf-js-express-in-salesforce-lightning-component/442/1)
- [Can fitText be used to set only height? If not, is there an alternative](https://pdfjs.community/t/can-fittext-be-used-to-set-only-height-if-not-is-there-an-alternative/896/1)
- [What version of PDF.js Express we should use](https://pdfjs.community/t/what-version-of-pdf-js-express-we-should-use/1542/1)

  
  

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)

---

<div class="post-metadata">

**Author:** ![elliot](https://avatars.discourse-cdn.com/v4/letter/e/858c86/32.png) [@elliot](https://pdfjs.community/u/elliot)\
**Post date:** [September 29, 2022, 4:09pm UTC](https://pdfjs.community/t/inconsistent-highlight-annotations-sometimes-blocking-text/2072/4 "2022-09-29T16:09:08Z")

</div>

I should also mention, this only seems to happen for me in chrome, i just checked in firefox and all the highlights look correct.

---

<div class="post-metadata">

**Author:** ![kkim](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@kkim](https://pdfjs.community/u/kkim)\
**Post date:** [October 3, 2022, 2:16pm UTC](https://pdfjs.community/t/inconsistent-highlight-annotations-sometimes-blocking-text/2072/5 "2022-10-03T14:16:13Z")

</div>

Hi elliot,

I was able to reproduce the issue on Chrome on the demo site ([PDF.js Viewer Demo | PDF.js Express](https://pdfjs.express/demo))

We’ve added the issue to our backlog to be worked on in the future. We don’t have a timeline for when it will be fixed but if it does get fixed we’ll let you know when it’s available in an experimental build to test out and the estimated official release date. If you have a desired timeline for having this issue fixed please let us know and we’ll do our best to work with you on how this can fit into the release schedule.

Best Regards,  
Kevin Kim  
Web Development Support Engineer  
PDFTron Systems, Inc.

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)

---

<div class="post-metadata">

**Author:** ![elliot](https://avatars.discourse-cdn.com/v4/letter/e/858c86/32.png) [@elliot](https://pdfjs.community/u/elliot)\
**Post date:** [October 3, 2022, 2:59pm UTC](https://pdfjs.community/t/inconsistent-highlight-annotations-sometimes-blocking-text/2072/6 "2022-10-03T14:59:59Z")

</div>

thanks @kkim I appreciate that. re: timeline, its going to be live for our users this week. So it is a concern for us - the sooner it can be fixed the better. It only seems to be happening for M1 macs, so hopefully won’t be a widespread broken experience.

---

<div class="post-metadata">

**Author:** ![kkim](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@kkim](https://pdfjs.community/u/kkim)\
**Post date:** [October 4, 2022, 8:23pm UTC](https://pdfjs.community/t/inconsistent-highlight-annotations-sometimes-blocking-text/2072/7 "2022-10-04T20:23:29Z")

</div>

Hi elliot,

It seems there are multiple bug-reports regarding this issue, and like you mentioned is only reproducible on M1 Mac on Chrome. We do have a ticket with Chrome for this issue.

Currently workaround is to disable hardware acceleration on Chrome:

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/d/d8d1c557aa227caedfa45a76ba982b35c76cd8b2.png)

Thank you for your patience.

Best Regards,  
Kevin Kim  
Web Development Support Engineer  
PDFTron Systems, Inc.

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)

---

<div class="post-metadata">

**Author:** ![zserviss](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zserviss](https://pdfjs.community/u/zserviss)\
**Post date:** [January 11, 2023, 12:30am UTC](https://pdfjs.community/t/inconsistent-highlight-annotations-sometimes-blocking-text/2072/8 "2023-01-11T00:30:41Z")

</div>

It looks like this is now fixed in Chrome.

I am closing this ticket now.
