Print to Pdf landscape doesn't fill page, only the top left quarter
Categories
(GeckoView :: PDF Viewer, defect)
Tracking
(Not tracked)
People
(Reporter: asl97, Unassigned)
References
Details
Attachments
(3 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Steps to reproduce:
- open https://asl97.github.io/Bingo-Spinner/sample/CS75-4000.html (also attached)
- press the menu button (three vertical dots)
- press the print button
- change menu to landscape and A4 size
- save pdf
Actual results:
See that the preview and pdf only has the 'card' occupying a quarter of the available space
Expected results:
The card should fill the whole page like on windows firefox, chrome and android chrome.
Issue tracking on my web app https://github.com/asl97/Bingo-Spinner/issues/17
I assume I need to separately attach the resulting pdf since I can only attach one file.
Updated•10 months ago
|
Comment 3•10 months ago
•
|
||
Thank you for reporting this bug!
In bug 1770971, we are tracking long term options/ideas for print settings, so I'll connect it to that bug.
For this bug., we could probably do something to intervene during onLayout
in the print adapter when we detect a landscape print request and request Gecko to make a landscape PDF with the appropriate constraints. (Android onLayout
docs.) However, this idea is still likely dependent on having a way to make Gecko print settings in Java and an API to request Gecko to perform the operation as described in bug 1770971.
Description
•