Skip to content
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

Wrong link highlight position on searching a word #215

Open
espresso3389 opened this issue Jul 24, 2024 · 2 comments
Open

Wrong link highlight position on searching a word #215

espresso3389 opened this issue Jul 24, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@espresso3389
Copy link
Owner

espresso3389 commented Jul 24, 2024

image
in some pdf, the marking is not placed correctly due to layout issues or any other reason.
but the size of the text was correct marking but the placement goes a little differently
example as shown in the image where two words were correctly placed but see the bottom of the image it was wrongly placed
pls check this
@espresso3389

Originally posted by @dineshnaikb in #189 (comment)

@espresso3389
Copy link
Owner Author

@dineshnaikb
There seems some kind of mis-calculation of text index.

From the screenshot, I'm guessing that for the 3rd one, indexOf("where") on the "Countries where" returns 5 instead of 10. The 4th one return 3.

The calculation of the text index is accumlative. So some letters on the text mis-increase the text index and it results in such problem.

If possible, could you allow me to access the PDF file (Or at least the page of the problem) to reproduce the issue?

@espresso3389 espresso3389 added the bug Something isn't working label Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants