-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Find feature produces some wrong highlightments #15094
Comments
In both cases, we call Line 3302 in b5fea8f
Line 3318 in b5fea8f
then Line 2921 in b5fea8f
but not in the search case. And finally it makes a difference here: https://github.com/mozilla/pdf.js/blob/master/src/core/evaluator.js#L2471 which is called with the operator OPS.setTextMatrix .
|
So in the @Snuffleupagus, do you have any thoughts here ? |
That sounds reasonable, since we obviously must return consistent textContent-data regardless of the Looking at the surrounding code, I can't help wondering why we don't also "flush" in the following case? Lines 3292 to 3299 in cd35b9b
|
Always flush the current item with MarkedContent stuff when getting text (#15094)
Attach (recommended) or Link to PDF file here:
cd.pdf
Configuration:
Steps to reproduce the problem:
e
andHighlight all
Something is wrong around the
B(cb, cs)
.From the
find_controler
:...of the blend function B (c b , cs ) shall be the so...
and from devtools:
![image](https://user-images.githubusercontent.com/5641725/175539183-ff455f01-59b1-4975-834d-f09983ec30b5.png)
The problem is the space between
c
andb
: it's either an extra space in the searched string or a missing one in the html.The text was updated successfully, but these errors were encountered: