Open Bug 1872249 Opened 10 months ago Updated 10 months ago

Print to Pdf landscape doesn't fill page, only the top left quarter

Categories

(GeckoView :: PDF Viewer, defect)

Firefox 121
All
Android
defect

Tracking

(Not tracked)

People

(Reporter: asl97, Unassigned)

References

Details

Attachments

(3 files)

Attached file sample card

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:

  1. open https://asl97.github.io/Bingo-Spinner/sample/CS75-4000.html (also attached)
  2. press the menu button (three vertical dots)
  3. press the print button
  4. change menu to landscape and A4 size
  5. 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.

Attached file Resulting.pdf
Component: General → PDF Viewer
Product: Fenix → GeckoView
See Also: → 1770971

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.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: