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)

enhancement

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:

  1. 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.

Summary: PDF rendering should be aware of the max canvas → PDF rendering should be aware of the max canvas dimensions
Blocks: 1713266
Type: defect → enhancement
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
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: