kjartan
December 29, 2022, 5:05pm
1
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
Try the PDF.js Express Viewer demo: 26 out-of-the-box annotations, PDF form filling, e-signatures, UI customization, light/dark themes & more.
tgordon
December 29, 2022, 8:55pm
3
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
kjartan
December 30, 2022, 9:08am
4
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
axeld
February 7, 2023, 1:14pm
6
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/ ?
axeld
February 10, 2023, 2:43pm
8
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?
axeld
February 13, 2023, 4:41pm
10
This is great, thank you !
Yes the default one when you open a pdf.