Open
Description
Attach (recommended) or Link to PDF file
pdfFile:https://github.com/mozilla/pdf.js/blob/master/web/compressed.tracemonkey-pldi-09.pdf
Repository Address:https://github.com/chenglu4343/pdf.js/tree/bug-style
Web browser and its version
Chrome 137.0.7151.122
Operating system and its version
windows11
PDF.js version
5.3.31
Is the bug present in the latest PDF.js version?
Yes
Is a browser extension
No
Steps to reproduce the problem
- Clone repository:https://github.com/chenglu4343/pdf.js/tree/bug-style
- run
npm install
npx gulp server
- open http://localhost:8888/web/viewer.html?file=%2Fweb%2Fcompressed.tracemonkey-pldi-09.pdf , and select the text
or
Add the following styles before using the viewer.
<style>
body > div {
height: 100%;
}
</style>
What is the expected behavior?
The textlayer can be displayed normally.
What went wrong?
textLayer display error
Link to a viewer
No response
Additional context
I'm not sure what happened. Can it be fixed, or can you clarify the hidden usage rules of the viewer?