Text at the bottom of a PDF gets clipped at certain zoom levels
Categories
(Firefox :: PDF Viewer, defect, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr115 | --- | unaffected |
| firefox-esr153 | --- | wontfix |
| firefox160 | --- | wontfix |
| firefox161 | --- | wontfix |
| firefox162 | --- | fixed |
People
(Reporter: dholbert, Assigned: calixte)
References
(Regression)
Details
(Keywords: regression)
Attachments
(4 files, 1 external file)
Attach (recommended) or Link to PDF file here: [attached]
Steps to reproduce the problem:
- Load attached PDF in Firefox Nightly
- Zoom out in increments of 10% (with Ctrl+mousewheel or by clicking the
-button on the PDF header), so that the PDF.js header-bar shows "70%" as the scale factor - Look at the text at the bottom of the page.
What is the expected behavior?
The text at the very bottom of the page should (barely) be on the page. e.g. the g in ``Trace the gray...` should have its descender barely touch the bottom of the page.
What went wrong?
The text gets clipped / rendered off-the-page. e.g. the g renders like a lowercase o or a with its descender fully clipped.
I'm using Nightly 162.0a1 (2026-11-15) (64-bit).
I've written my STR for desktop, but I initially ran into this on Android, where the PDF is zoomed out by-default. to fit on-screen (and reproduces this bug for me in the initial rendering)
| Reporter | ||
Comment 1•11 days ago
|
||
| Reporter | ||
Updated•11 days ago
|
| Reporter | ||
Comment 2•11 days ago
|
||
| Reporter | ||
Comment 3•11 days ago
|
||
This is a regression from back in 2024.
When it first regressed, here's how it looked - we had a different "bad" rendering than we currently do. (Note there's a strip of blank space between the clipped characters and the edge of the paper.)
| Reporter | ||
Comment 4•11 days ago
•
|
||
Regression notes:
-
Our rendering was good (at this 70% zoom level at least) in Nightly 2024-06-23 and before.
-
On 2024-06-24, we started drawing a blank strip at the page boundary and clipping the text at that blank area (see previous comment). Regression range for that change:
https://hg-edge.mozilla.org/mozilla-central/pushloghtml?fromchange=197242dda0b4aa2dc8668d35ec85e48d59831687&tochange=fc0f7d3e6a3da00be2375c8d7681ff44070ebd7c
Suspected: Bug 1904120 - Update PDF.js to f9ff613e56dca65b95ce9e10d13350008b523979
(maybe specifically bug 1539074 which was part of that update?) -
On 2024-09-09, we stopped drawing that blank strip. Regression range for that change:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=eb90f648ee67a84bf0fad21b892bc56d3e578e96&tochange=50016ed273448d29bc57cb2ca478c95509931435
Suspected: Bug 1917430 - Update PDF.js to new version 5369a24c9c41a10565e8003f01960f74b5cd8a21
(In that bug, the behavior-change was probably https://github.com/mozilla/pdf.js/pull/18698 )
| Reporter | ||
Updated•11 days ago
|
Comment 5•11 days ago
|
||
Set release status flags based on info from the regressing bug 1904120
:calixte, since you are the author of the regressor, bug 1904120, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
Comment 6•11 days ago
|
||
(via GitHub webhook, authenticated as shared-secret)
| Assignee | ||
Updated•11 days ago
|
Updated•11 days ago
|
Updated•10 days ago
|
Updated•3 days ago
|
Description
•