Open Bug 1918861 Opened 1 year ago Updated 1 year ago

Printing landscape PDF will crop half of the document

Categories

(Core :: Printing: Output, defect)

All
Android
defect

Tracking

()

People

(Reporter: joao.victor.bonfim, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(3 files)

User Agent: Mozilla/5.0 (Android 14; Mobile; rv:130.0) Gecko/130.0 Firefox/130.0

Steps to reproduce:

Had an password encrypted PDF file available whose orientation wasn't portrait, but rather landscape.
Opened the file with Firefox. Tried to print it using the print call.

Actual results:

Print application for my device showed the file, but it had half of it cropped off. When changing to portrait mode, problem persists.

Expected results:

The file should have been printed whole.

I can reproduce the bug with this sample PDF, that doesn't need to be encrypted.

Thanks for reporting the bug.

Severity: -- → S2
Component: Media → PDF Viewer
Product: Fenix → GeckoView
Attached file plop.html

I don't think it's a problem on the pdf.js' side.
I can reproduce the issue with the html file in attachment: it just specifies a @page { size... } property (we use something similar in pdf.js: https://github.com/mozilla/pdf.js/blob/a7e1bf64c4c7a42c7577ce9490054faa1c4eda99/web/pdf_print_service.js#L118-L129).
At least in the print preview (I didn't try to print for real), the rendering is correct with Firefox desktop but it isn't with the Android version.

Maybe :dholbert will have an idea.

Flags: needinfo?(dholbert)

On Android, from the printer settings (Save in PDF), changing the orientation to landscape doesn't show anything (except few chars too small for my eyes) in the preview.

Yup, this definitely looks like a bug in our printing implementation on Android (not specific to PDF). Thanks Calixte for the testcase.

Status: UNCONFIRMED → NEW
Component: PDF Viewer → Printing: Output
Ever confirmed: true
Flags: needinfo?(dholbert)
Product: GeckoView → Core
Version: Firefox 130 → Trunk
Attached file testcase 2

This affects Fenix's Share|Save-as-PDF flow, too.

Associating with the printing-on-Android metabugs.

Blocks: 1808755, 1809915
Severity: S2 → S3
See Also: → 1770971
See Also: → 1824687
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: