Open
Description
Attach (recommended) or Link to PDF file
When printing certain PDFs using PDF.js in Firefox (tested with the built-in viewer), the content does not scale properly to fit the page. Specifically, it creates large margins on the bottom and right sides of the page, and the document appears shrunken in the top-left corner.
The same PDF prints correctly with no margin issues in other PDF viewers
Web browser and its version
141.0a1, 128.6.0esr
Operating system and its version
macOS 15, Windows 11
PDF.js version
5.3.33, 4.4.10
Is the bug present in the latest PDF.js version?
Yes
Is a browser extension
No
Steps to reproduce the problem
- Open the attached PDF in Firefox
- Print using the default or “Fit to page” settings
- Observe the large white margin at the bottom and right sides
What is the expected behavior?
No margins at the bottom and right sides.
What went wrong?
Link to a viewer
No response
Additional context
No response