Printing landscape PDF will crop half of the document
Categories
(Core :: Printing: Output, 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.
Comment 1•1 year ago
|
||
I can reproduce the bug with this sample PDF, that doesn't need to be encrypted.
Thanks for reporting the bug.
Comment 2•1 year ago
|
||
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.
Comment 3•1 year ago
|
||
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.
Comment 4•1 year ago
|
||
Yup, this definitely looks like a bug in our printing implementation on Android (not specific to PDF). Thanks Calixte for the testcase.
Comment 5•1 year ago
|
||
Comment 6•1 year ago
|
||
This affects Fenix's Share|Save-as-PDF flow, too.
Comment 7•1 year ago
|
||
Comment 8•1 year ago
|
||
Associating with the printing-on-Android metabugs.
Description
•