# Highlight Text is not working

**URL:** <https://pdfjs.community/t/highlight-text-is-not-working/1489>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [March 21, 2022, 6:05am UTC](https://pdfjs.community/t/highlight-text-is-not-working/1489 "2022-03-21T06:05:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajay](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@ajay](https://pdfjs.community/u/ajay)\
**Post date:** [March 21, 2022, 6:05am UTC](https://pdfjs.community/t/highlight-text-is-not-working/1489/1 "2022-03-21T06:05:50Z")

</div>

Hi, I’m trying to test out the text highlight functionality but got errors which are mentioned below

**1. Uncaught (in promise) Error: addAnnotations: Annotations are not available in the free viewer build of PDF.js Express. For full annotation support, please use the full version of PDF.js Express.**

\*\* at Proxy.Xn (webviewer-core.min.js:357:412)\*\*

\*\* at bundle.js:118:31\*\*

**2. Uncaught Error: deleteAnnotations: Annotations are not available in the free viewer build of PDF.js Express. For full annotation support, please use the full version of PDF.js Express.**

\*\* at Object.get (webviewer-core.min.js:400:106)\*\*

\*\* at removeHighlightedText (App.js:102:1)\*\*

\*\* at App.js:128:1\*\*

\*\* at Array.forEach ()\*\*

\*\* at HTMLInputElement. (App.js:124:1)\*\*

\*\* at App.js:22:1\*\*

---

<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:** [March 21, 2022, 6:05am UTC](https://pdfjs.community/t/highlight-text-is-not-working/1489/3 "2022-03-21T06:05:55Z")

</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:
- [Set up server for real-time collaboration](https://pdfjs.express/documentation/collaboration/realtime-collaboration-server)
- [Set up real-time collaboration](https://pdfjs.express/documentation/collaboration/setup)
- [PDF.js Express Viewer Overview - What is PDF.js Express Viewer?](https://pdfjs.express/documentation/get-started-viewer#what-is-pdf.js-express-viewer?)

APIs:
- [PDF.js Express Utilities](https://pdfjs.express/api/utils/index.html#__anchor)
- [Core](https://pdfjs.express/api/Core.html#__anchor)
- [ExpressUtils(optionsopt) - # async set() → {Promise.}](https://pdfjs.express/api/utils/ExpressUtils.html#set__anchor)

Forums:
- [Download Button is not working](https://pdfjs.community/t/download-button-is-not-working/1366/1)
- [I have license, but still show watermark](https://pdfjs.community/t/i-have-license-but-still-show-watermark/1078/6)
- [License key for viewer is not working in an ionic app](https://pdfjs.community/t/license-key-for-viewer-is-not-working-in-an-ionic-app/1436/1)

---

<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:** [March 21, 2022, 3:38pm UTC](https://pdfjs.community/t/highlight-text-is-not-working/1489/4 "2022-03-21T15:38:15Z")

</div>

Hi there,

As the error message states, annotations are not supported in the free viewer version of PDF.js Express.

If you want annotation support, please upgrade to PDF.js Express Plus (npm link [here](https://www.npmjs.com/package/@pdftron/pdfjs-express)). There is an unlimited free trial so you don’t need to pay until you’re ready for production.

Thanks!  
Logan

---

<div class="post-metadata">

**Author:** ![ajay](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@ajay](https://pdfjs.community/u/ajay)\
**Post date:** [March 22, 2022, 3:52am UTC](https://pdfjs.community/t/highlight-text-is-not-working/1489/5 "2022-03-22T03:52:15Z")

</div>

I’m already using the same npm package, still not working
