# Override pdfjs?

**URL:** <https://pdfjs.community/t/override-pdfjs/652>\
**Category:** Technical Support\
**Created:** [March 21, 2021, 10:42pm UTC](https://pdfjs.community/t/override-pdfjs/652 "2021-03-21T22:42:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nigel](https://avatars.discourse-cdn.com/v4/letter/n/e47774/32.png) [@nigel](https://pdfjs.community/u/nigel)\
**Post date:** [March 21, 2021, 10:42pm UTC](https://pdfjs.community/t/override-pdfjs/652/1 "2021-03-21T22:42:51Z")

</div>

Hi Logan.

Our client has reported issues with the highlighting of results, which I’m able to reproduce. I’ve seen [Highlight tool does not highlight the text completely](https://pdfjs.community/t/highlight-tool-does-not-highlight-the-text-completely/97) and assume that’s the issue we’re experiencing, so I’m wondering whether a means is provided for us to override the pdf.js version that’s used (if I were to fix the issue upstream, could I use that fixed version with pdfjs while waiting for the patch to be merged?).

Thanks!

Nigel

---

<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, 2021, 10:42pm UTC](https://pdfjs.community/t/override-pdfjs/652/2 "2021-03-21T22:42:53Z")

</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:

- [Disabling flattened annotations](https://pdfjs.express/documentation/annotation/disable-annotations)
- [CoreControls.DocumentViewer - setSearchHighlightColors(colorOptions)](https://pdfjs.express/api/CoreControls.DocumentViewer.html#setSearchHighlightColors__anchor)
- [CoreControls.DocumentViewer - displayAdditionalSearchResults(results)](https://pdfjs.express/api/CoreControls.DocumentViewer.html#displayAdditionalSearchResults__anchor)
- [Annotations.FreeHandAnnotation - setPath(path, pathIndex)](https://pdfjs.express/api/Annotations.FreeHandAnnotation.html#setPath__anchor)
- [Annotations.TextSelectionModel - testSelection(annotation, x, y, pageMatrix, zoom, rotation)](https://pdfjs.express/api/Annotations.TextSelectionModel.html#testSelection__anchor)

---

<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 22, 2021, 9:31pm UTC](https://pdfjs.community/t/override-pdfjs/652/3 "2021-03-22T21:31:01Z")

</div>

Hey Nigel,

No, this is not possible. We have our own custom fork of PDF.js that we have to use internally.

Sorry about that,  
Logan
