Bug 161541

Summary: Printing: selecting different page orientation does not relayout printed handouts
Product: LibreOffice Reporter: Gabor Kelemen (allotropia) <kelemeng>
Component: ImpressAssignee: Not Assigned <libreoffice-bugs>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: medium    
Version: Inherited From OOo   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=155218
Whiteboard: QA:needsComment
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 103309    
Attachments: Example file from the Candy template
4 slides in Handouts type looks bad on a Portrait sheet
Changing the Orientation to Landscape does not relayout the content
Handout master shows where the Portrait setting comes from
Changing to the Handout master orientation shows less wasted space
After changing the Handout Master, the preview is laid out nicely

Description Gabor Kelemen (allotropia) 2024-06-12 23:12:29 UTC
Created attachment 194691 [details]
Example file from the Candy template

This is somewhat similar to bug 155218 of Calc

Usually, slide templates (at least TDF provided ones) are landscape oriented.
The handout master however is Portrait oriented, which makes it easy to trigger the issue.

1. Open attached file, which is just the Candy template
2. Go to the Print dialog
3. On the Impress tab, select the Handouts type and 4 "Slides per page"
-> the preview shows the Portrait oriented page with 4 small images of the slides. This is wasteful, they would look better (larger) if the paper would be landscape oriented
4. Go to the General page, select Landscape Orientation
-> the preview shows the landscape paper, but the slide images are still tiny with lots of empty space between them
5. Close the Print dialog, go to View - Master Handout
6. In the sidebar under the Master Slide section change the Orientation to Landscape. This is more visible with 4 or 9 slides per sheet, less so with the default 6, so play with changing the layout as well.
7. Go back to the Print Dialog, redo Step 3
-> Now the paper preview is landscape and the slide previews are larger, there is only a small empty space between them.

This is because the Print dialog does not relayout the document when the user overrides the Orientation setting, similarly to the case in bug 155218.

The issue can be also triggered with printing the Slides themselves, if the Pages per sheet setting is set to 4 and then the Orientation to Portrait. But this is more rare, since the default master slide orientation is sensibly "Landscape".

Version: 24.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: a2b6ce5d21b7f5c84ced8485f5af279f1bf8135f
CPU threads: 14; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: default

Also happens in 3.3.

I think it would be useful to implement some similar logic as in Calc for relayouting the content when the Orientation is changed.
Comment 1 Gabor Kelemen (allotropia) 2024-06-12 23:16:44 UTC
Created attachment 194692 [details]
4 slides in Handouts type looks bad on a Portrait sheet
Comment 2 Gabor Kelemen (allotropia) 2024-06-12 23:18:04 UTC
Created attachment 194693 [details]
Changing the Orientation to Landscape does not relayout the content
Comment 3 Gabor Kelemen (allotropia) 2024-06-12 23:19:01 UTC
Created attachment 194694 [details]
Handout master shows where the Portrait setting comes from
Comment 4 Gabor Kelemen (allotropia) 2024-06-12 23:19:45 UTC
Created attachment 194695 [details]
Changing to the Handout master orientation shows less wasted space
Comment 5 Gabor Kelemen (allotropia) 2024-06-12 23:20:37 UTC
Created attachment 194696 [details]
After changing the Handout Master, the preview is laid out nicely