Detailed description of issue
When searching this document for the term anger it’s finding it however on page 114 it’s not actually highlighting the term. Also I noticed when I try to highlight some of the text on page 114 I am unable to, or it will only highlight sections and not all of it.
Expected behaviour
All search results should get highlighted.
I spent a couple days trying to fix this issue, however after a bit of time I came to the conclusion that the issue is caused by the PDF.js rendering engine providing incorrect text positioning, which we do not support.
The text formatting in this specific document is a also bit wonky. You will see that the native PDF.js demo has a hard time highlight the word correctly as well (although they do an OK job still):
Since we do not support PDF.js rendering bugs, we will not investigate this bug any further. We may try to make improvements to our text selection in the future which may fix this bug as a side effect, but I cannot promise anything for the time being.
If you do need extremely accurate text highlighting, you can check out our sister product, PDFTron WebViewer which handles this document just fine.