3

I wanted to have portrait for page 1 and landscape for page 2. How could I achieve that in QGIS Print Composer?

3 Answers 3

7

You cannot mix portrait and landscape in the same print composer composition. You have to have two different print composers.

3

Did you consider to make use of atlas feature and then control page orientation by an attribute value of the atlas control featureclass?

2
  • Unfortunately I couldn't use atlas feature because, the Print Composer itself is used by another plugin that relies on composer.
    – wondim
    Mar 16, 2016 at 19:15
  • Pity that Atlas wasn't available to you - you can set pretty much everything based on the Atlas (e.g., setting orientation by case when bounds_width( @atlas_geometry ) > bounds_height( @atlas_geometry ) then 'landscape' else 'portrait' end). Can't change the number of legend columns that way - so I use two Legends (3-column for L, and 1-column for P), and toggle visibility and rendering based on @atlas_geometry h vs w. All other components can be changed for each Atlas item using @atlas_geometry expressions to set their position, size, rendering, etc.
    – GT.
    May 18, 2017 at 1:30
3

Thank you for the above answer. It ended my search. So to have both layouts in the same document, what I did was, I rotated all items in the page that I wanted to be portrait using Item properties -> Rotation -> I rotated all to 270, then saved the file to PDF.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.