Bug report #11352
[composer] Page orientation ignored when printing
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||19643|
Steps to reproduce:
1. change page orientation to portrait
2. try and print. page size is landscape.
[composer] Fix page orientation and size ignored when printing
Turns out QPrinter::setPaperSize silently flips the width and height
of a page if the printer orientation is set to landscape. So, make sure
we manually set the orientation to portrait before setting the page size
so that we can be sure the QPrinter is set to the correct page size.
This also restores the 2.4 behaviour where users could override
printed page size in the printer properties dialog (but only if
no data defined page size settings are active).
#1 Updated by Andreas Neumann almost 6 years ago
Do you mean that the printer does not pick up the correct rotation from the QGIS page composition?
As far as I can tell it was always like this. People had to manually adjust page orientation in the printer dialogue.
It would be nice to have a fix for this, but maybe it depends a lot on the OS?