Closed
Bug 1943094
Opened 1 year ago
Closed 1 year ago
PDF rendering should be aware of the max canvas dimensions
Categories
(Firefox :: PDF Viewer, enhancement)
Firefox
PDF Viewer
Tracking
()
RESOLVED
FIXED
138 Branch
| Tracking | Status | |
|---|---|---|
| firefox138 | --- | fixed |
People
(Reporter: nicolo.ribaudo, Assigned: Snuffleupagus)
References
Details
Attachments
(2 files)
Attach (recommended) or Link to PDF file here: https://github.com/mozilla/pdf.js/issues/12957
Steps to reproduce the problem:
- Zoom that PDF
What is the expected behavior? (add screenshot)
To avoid drawing canvases that are too big, pdf.js already limits their area to a maximum number and uses CSS zoom rather than a larger canvas. However, just checking the area is not enough for very narrow and very tall documents: pdf.js should also limit the width/height of canvases (defined as https://searchfox.org/mozilla-central/source/modules/libpref/init/StaticPrefList.yaml#6208), and trigger the CSS zoom mode once it reaches Firefox's limit.
What went wrong? (add screenshot)
That PDF cannot be rendered above certain zoom levels.
| Reporter | ||
Updated•1 year ago
|
Summary: PDF rendering should be aware of the max canvas → PDF rendering should be aware of the max canvas dimensions
Comment 1•1 year ago
|
||
| Assignee | ||
Comment 2•1 year ago
|
||
Updated•1 year ago
|
Assignee: nobody → jonas.jenwald
Status: NEW → ASSIGNED
Pushed by cdenizet@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c25cb31d4377
Expose the maximum canvas dimension to the PDF Viewer. r=pdfjs-reviewers,calixte
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox138:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
Updated•1 year ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•1 year ago
|
status-firefox138:
fixed → ---
Updated•1 year ago
|
Status: REOPENED → RESOLVED
Closed: 1 year ago → 1 year ago
Resolution: --- → FIXED
Updated•1 year ago
|
status-firefox138:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•