Bug 168547 - Changing paper size in printer settings does not cause document relayout to the new size
Summary: Changing paper size in printer settings does not cause document relayout to t...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
4.1.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bisected, regression
Depends on:
Blocks: Print-Dialog
  Show dependency treegraph
 
Reported: 2025-09-25 14:12 UTC by Gabor Kelemen (Collabora)
Modified: 2025-09-27 13:23 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Print dialog with A1 paper size set in document (39.46 KB, image/png)
2025-09-25 14:12 UTC, Gabor Kelemen (Collabora)
Details
Setting A5 paper size in Printer Properties - Special dialog (42.09 KB, image/png)
2025-09-25 14:13 UTC, Gabor Kelemen (Collabora)
Details
Preview size is still the same, after the dropdown has changed (31.79 KB, image/png)
2025-09-25 14:14 UTC, Gabor Kelemen (Collabora)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (Collabora) 2025-09-25 14:12:38 UTC
Created attachment 202962 [details]
Print dialog with A1 paper size set in document

When the paper size is changed in the printer settings, the Print dialogs preview is not updated to the new size and printing happens with the previous paper size.

1. Open the Print dialog.
2. Under the printer name, press the Properties button, then Special in the next dialog
3. Set the paper size to A5 (assuming the default is A4/Letter), press OK, then close the printers Properties dialog as well

-> Notice that in the Paper Size dropdown the value changes to the one set earlier, but in the left preview area the paper size and document layout is not changed.
Consequently, if the printing continues the result would be on the previous paper size.


Bibisect with linux-41-max shows this has started sometime in 4.1, in 4.0 it was good:

https://cgit.freedesktop.org/libreoffice/core/log/?id=235941bcd0e59c2831d5bc28683119eb6a2fd982&qt=range&q=6166282edeb1a5c44d34d4824eab1f82b6e7b15a...235941bcd0e59c2831d5bc28683119eb6a2fd982

of this range, this commit is most suspicious:

https://cgit.freedesktop.org/libreoffice/core/commit/?id=7a5bfde13afd98f1a8e110a96a636119da2ad911


author	Caolán McNamara <caolanm@redhat.com>	2013-05-17 15:20:11 +0100
committer	Caolán McNamara <caolanm@redhat.com>	2013-05-17 15:25:40 +0100
commit 7a5bfde13afd98f1a8e110a96a636119da2ad911 (patch)

Related: fdo#61186 ensure printer settings paper format is not clobbered
Comment 1 Gabor Kelemen (Collabora) 2025-09-25 14:13:17 UTC
Created attachment 202963 [details]
Setting A5 paper size in Printer Properties - Special dialog
Comment 2 Gabor Kelemen (Collabora) 2025-09-25 14:14:14 UTC
Created attachment 202964 [details]
Preview size is still the same, after the dropdown has changed
Comment 3 Regina Henschel 2025-09-27 13:23:16 UTC
I'm not sure, whether LibreOffice should try to catch the paper settings, you make in the printer driver. Those highly depend on printer, the installed driver and on operating system. Are you sure, the driver provides all these settings for applications?

The current way is, that you set the paper size in the print dialog in LibreOffice and the printer driver (hopefully) uses that information. At least that works for me with Epson WP-4025 on Windows 11.