mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
48.16k stars 9.95k forks source link

Find method not works, viewer detects spaces where there aren't #18215

Closed alvaroman23 closed 3 months ago

alvaroman23 commented 3 months ago

Attach (recommended) or Link to PDF file here:

Configuration:

Steps to reproduce the problem:

  1. I am using pdf.js through vue pdf app, in order to have the pdfviewer and use it. I am having problems as pdf viewer detects spaces where there aren't. So when I am trying to search some phrases specially those that has Text alignment, or tabs, or even indetation. Will attach the root cause so you will see that if I add spaces (that are not there) it will highlight the text . Captura de pantalla 2024-06-04 a las 22 19 14 Captura de pantalla 2024-06-04 a las 22 19 14

What is the expected behavior? (add screenshot)

calixteman commented 3 months ago

The version 2.4.456 has been released 4 years ago... and we fixed a lot of bugs since. If you can reproduce your issue with https://mozilla.github.io/pdf.js/web/viewer.html then please provide us the pdf and a clear STR.

Snuffleupagus commented 3 months ago

Closing for now, since it's opened a couple of days ago and it unfortunately still lacks enough information to be actionable.