Bug 166421 - Pages per sheet changes paper size to letter from A4
Summary: Pages per sheet changes paper size to letter from A4
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
25.2.2.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Print-Dialog
  Show dependency treegraph
 
Reported: 2025-05-01 11:23 UTC by nk
Modified: 2025-07-15 07:52 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
bisection-image(win64-25.2) (257.52 KB, image/png)
2025-07-15 07:49 UTC, Saburo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nk 2025-05-01 11:23:21 UTC
Description:
In Writer

Brother HL-L8260CDW

Paper size set to A4
Orientation Automatic

Preview shows Portrait (as per document) and correct A4 dimensions
210mm x 297mm

Change Pages per sheet to 2

Paper size and Orientation remain as A4 and automatic

Preview now shows Landscape (as expected) but dimensions are now 279mm (Letter by 216mm.

It prints out as if on letter.

If reselect A4 Paper size preview shows A4 dimensions but portrait.  To fully fix the orientation needs to be manually changed to landscape.

Similar issue if use Microsoft Print to PDF.

This time paper size remains A4 but orientation doesn't change - need to manually set to Landsape.


Steps to Reproduce:
1.Print
2.Set Paper Size to A4
3.Change Pages per sheet to 2 or greater
4.Observe preview behaviour

Actual Results:
Paper size on preview and actual printing doesn't reflect page layout settings

Orientation doesn't correctly adapt for printing style.

Expected Results:
Paper size should remain as per page layout
Orientation should automatically adjust.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 25.2.2.2 (X86_64) / LibreOffice Community
Build ID: 7370d4be9e3cf6031a51beef54ff3bda878e3fac
CPU threads: 12; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Vulkan; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: threaded
Comment 1 Mateusz Wlazłowski 2025-05-01 19:33:18 UTC
a) the letter size after changing the number of pages per sheets to 2

Confirm on Windows only, Linux works fine

b) changing the paper size makes the automatic orientation fail to detect the landscape orientation

Confirm on both Linux and Windows



Version: 25.2.3.2 (X86_64) / LibreOffice Community
Build ID: bbb074479178df812d175f709636b368952c2ce3
CPU threads: 8; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Flatpak
Calc: threaded


Version: 25.2.3.2 (X86_64) / LibreOffice Community
Build ID: bbb074479178df812d175f709636b368952c2ce3
CPU threads: 2; OS: Windows 11 X86_64 (10.0 build 22621); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 2 Alistair Saywell 2025-07-14 09:17:36 UTC
With simple print, just changing the printer from the default printer to another printer also changes the print size from A4 to Letter.

This does not happen with 24.8 and earlier

Version: 25.2.3.2 (X86_64) / LibreOffice Community
Build ID: bbb074479178df812d175f709636b368952c2ce3
CPU threads: 8; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: en-NZ (en_NZ); UI: en-GB
Calc: CL threaded

Also for 25.8.0.0 beta1
Comment 3 Saburo 2025-07-15 07:49:58 UTC
Created attachment 201801 [details]
bisection-image(win64-25.2)

bibisected with win64-25.2

Version: 25.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 43e511e642a2ce7026b30ea5c212940ff3eb522e

author	Tibor Nagy
commit 43e511e642a2ce7026b30ea5c212940ff3eb522e
tdf#88226 sd: fix cutting off the overflow text on the notes print page