Hard to select/hightlight/comment on some text in some documents

Which product are you using?

PDF.js Express Version

Detailed description of issue
I´m trying out this tool and it looks promising but it does not seem to work well with some documents. The highlighting, selecting and commenting is hard to do in some documents. For example the document provided below.

Expected behaviour

Screenshot

Does your issue happen with every document, or just one?
Many documents in my collection. I can provide more if you want.

Link to document
landsrettur.pdf (199.0 KB)

Code snippet
I just used the default demo viewer

Hello kjartan

Unfortunately text selection is handled by the PDFJS library, which is out of the scope of what we can fix. You can open a ticket with them here: GitHub - mozilla/pdf.js: PDF Reader in JavaScript

Best regards,
Tyler Gordon
Web Development Support Engineer
PDFTron

What version of pdfjs library are you using? Text selection works fine if I use the default pdfjs demo viewer.
https://mozilla.github.io/pdf.js/web/viewer.html

You can open the same file in that viewer and test

Hello kjartan,

We are using v2.0 of PDF.js, I see that the latest version of PDF.js has better text selection, we will look into this.

Best regards,
Tyler Gordon
Web Development Support Engineer
PDFTron