mozilla / pdf.js

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

Find-in-page highlight-box is at wrong y-position in Coway airmega PDF-manual #12334

Closed dholbert closed 3 years ago

dholbert commented 4 years ago

Attach (recommended) or Link to PDF file here: https://images-na.ssl-images-amazon.com/images/I/D1SWYNC4nwS.pdf D1SWYNC4nwS.pdf

Configuration:

Steps to reproduce the problem:

  1. Load attached PDF
  2. Find-in-page (Ctrl+F) and type "clean".
  3. (optional): Ctrl+G to skip through a few matches

What is the expected behavior? The text "clean" should be highlighted for each match.

What went wrong? (add screenshot) The highlighted box is above the text, approximately one line-height away: image image

piexpie commented 4 years ago

Yeah, so I tried to reproduce the bug and it is evident that the y-position is not correct.

This is not a problem with the PDF document itself since the same document selection is rendered correctly in Edge's PDF Viewer. This probably has to do with the y-offset in rendering the selection.

piexpie commented 4 years ago

Please assign this issue, I can begin some work on this.

timvandermeij commented 3 years ago

Closing since this got fixed by #12896 and other work.