Last Comment Bug 844090 - landscape pdfs are printed portrait with pdf.js
: landscape pdfs are printed portrait with pdf.js
Status: NEW
Product: Firefox
Classification: Client Software
Component: PDF Viewer (show other bugs)
: Trunk
: x86 Windows XP
P3 normal with 8 votes (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
: Brendan Dahl [:bdahl]
: 847343 1125103 1303061 1305275 (view as bug list)
Depends on: 851441
  Show dependency treegraph
Reported: 2013-02-22 06:01 PST by abma
Modified: 2017-01-13 04:55 PST (History)
14 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

Printing result of a landscape PDF (62.66 KB, application/pdf)
2014-02-03 03:48 PST, gilles.renault
no flags Details

Description User image abma 2013-02-22 06:01:24 PST
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:19.0) Gecko/20100101 Firefox/19.0
Build ID: 20130215130331

Steps to reproduce:

for example load with pdf.js

print the page

Actual results:

the page is printed portrait, with stuff cut off

Expected results:

the page should be printed landscape (->autorotated)
Comment 1 User image Joe Drew (not getting mail) 2013-03-06 09:55:38 PST
Another example is this MS Walk pledge sheet.
Comment 2 User image Mihaela Velimiroviciu (:mihaelav) 2013-03-13 07:10:32 PDT
*** Bug 847343 has been marked as a duplicate of this bug. ***
Comment 3 User image Broda Noel 2013-03-13 19:01:11 PDT
All plataforms... I have Windows 7 64bits and exist the problem.
Comment 4 User image cogitatorx 2013-04-10 08:38:02 PDT
I can't provide a concrete example, but we use Oracle E-Business Suite where I do IT support and most of the generated reports in PDF format have this issue where the Adobe plug-in, with the 'Auto portrait/landscape' setting selected on the Print dialog, will automatically print these reports in landscape as our users expect.

The native PDF viewer in Google Chrome also automatically prints them in landscape.

PDF.js version 0.7.28 (Firefox 20), however, prints these reports in portrait.
Comment 5 User image gilles.renault 2014-02-03 03:45:23 PST

Got the same problème, windows 7 SP1 x64, and aurora 28.0a2 (2014-02-02).  Using the printing is in protrait.
Comment 6 User image gilles.renault 2014-02-03 03:48:05 PST
Created attachment 8369367 [details]
Printing result of a landscape PDF

This is the resulting printing of a landscape pdf with aurora 28.0a2 (2014-02-02).
Comment 7 User image Brendan Dahl [:bdahl] 2015-01-26 15:25:10 PST
*** Bug 1125103 has been marked as a duplicate of this bug. ***
Comment 8 User image mblain2 2015-02-17 10:03:42 PST
It's using the last state of portrait or landscape as chosen in Print Preview.
Instead of clicking the print button on the pdf.js toolbar you can press Alt-F-V to use print preview, then select portrait or landscape.  Can the pdf.js toolbar be customized to add a print preview button?
Comment 9 User image andrea.salicetti 2016-03-09 03:11:02 PST
A pdf open through Firefox internal previewer with only landscape pages should default print layout to landscape and print correctly.

Instead - with FF 45.0 (but even on 44.0.2 and 43.x) a PDF with all (just one, in my test) pages in landscape is shown correctly in landscape, but is printed on portrait since when I click on the print icon on the top right header toolbar of the preview, the popup windows with the printing options has "Portrait" as layout default...
Comment 10 User image Loic 2017-01-13 04:54:07 PST
*** Bug 1305275 has been marked as a duplicate of this bug. ***
Comment 11 User image Loic 2017-01-13 04:55:32 PST
*** Bug 1303061 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.