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

Hello,

Do you have any news ? I use a lot text selection, and I would really appreciate if you can upgrade it to the latest pdf.js.

Thanks.

Could you try WebViewer and see if the issue resolved there: https://showcase.apryse.com/?

This is really better, but not as good as the chrome pdf viewer, is it normal ?

Will you implement it in a future version of pdfjs express ?

Thanks !

We are going to upgrade the engine and selection later this year. Stay tuned. By Chrome, you mean the default one that opens?

This is great, thank you !

Yes the default one when you open a pdf.