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