You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One way to address this may be to always set the following by default in the PDFViewer/PDFPageView constructors, so if that makes sense overall I can submit a patch!
Yep it's what I found too (i.e. the fact that the scale-factor is wrong).
I'd say that this bug just highlights something which was already wrong.
Let's go for your fix :).
Attach (recommended) or Link to PDF file here:
Configuration:
Steps to reproduce the problem:
After PR #15722, the textLayer will no longer have correct dimensions unless zooming has occurred at least once. This was found when testing the "pageviewer" component-example locally, see https://github.com/mozilla/pdf.js/tree/master/examples/components
To more easily reproduce this directly in the default viewer, apply the following diff and load http://localhost:8888/web/viewer.html#disableHistory=true&textLayer=visible:
What is the expected behavior? (add screenshot)
Correct initial textLayer dimensions, as in:
What went wrong? (add screenshot)
Wrong initial textLayer dimensions, as in:
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension): N/A
/cc @calixteman
The text was updated successfully, but these errors were encountered: