Bug 101142 - Print preview picks the color from the document background option
Summary: Print preview picks the color from the document background option
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: low trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevEval
Depends on:
Blocks: Print-Preview
  Show dependency treegraph
 
Reported: 2016-07-26 22:44 UTC by RGB
Modified: 2024-11-06 16:46 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description RGB 2016-07-26 22:44:01 UTC
On Writer, go to Tools → Options → LibreOffice → Application colors and change the "Document background" to something different from default, let's say "Gray 1". This color should only apply "on screen" during edition and in fact if you export to PDF or go to the the Print dialogue, the page will be white. But if you activate the "Print preview" using the corresponding Standard toolbar button (or Ctrl-Shift-O) you'll see the page presented with the background color you choose for the *application*, which is wrong: print preview must display how the print output will be, not the editor display.
Comment 1 Buovjaga 2016-08-05 18:01:49 UTC
Yep.

Arch Linux 64-bit
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 2 QA Administrators 2017-10-23 14:12:32 UTC Comment hidden (obsolete)
Comment 3 Thomas Lendo 2018-10-11 21:24:05 UTC
Still reproducible.

Version: 6.2.0.0.alpha0+
Build ID: 425af6845ebe066c950b0b63f50563e067485f3e
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: de-DE (de_DE.UTF-8); Calc: threaded
Comment 4 QA Administrators 2019-10-12 02:44:46 UTC Comment hidden (obsolete)
Comment 5 RGB 2019-10-12 13:17:38 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2021-10-22 03:45:07 UTC Comment hidden (obsolete)
Comment 7 RGB 2021-10-22 20:05:56 UTC
Problem still present in 7.1.4 (openSUSE Leap build) and 7.2.2 (vanilla build)
Comment 8 Timur 2022-02-01 15:34:01 UTC
Repro 7.4+ in Windows, so All OS is correct.
Comment 9 RGB 2022-08-07 15:38:08 UTC
This is also true when picking LibreOffice Dark theme in Tools → Options → Application Colors: what's shown in print preview is NOT what you'll get when printing. Tested with 7.3.5 & 7.4.0rc2.
Comment 10 Rafael Lima 2022-11-06 18:20:11 UTC
Pressing Ctrl+P to open the Print dialog works as expected, with the white page background even when the document color is different.

However, the Print Preview (Ctrl+Shift+O) does not use the white paper color.

We could have a toggle in Print Preview so that the user can choose to "Use white background" during preview.
Comment 11 QA Administrators 2024-11-06 03:15:42 UTC Comment hidden (obsolete)
Comment 12 RGB 2024-11-06 16:46:47 UTC
The problem is still present in recent versions (both 24.8 and 25.2.alpha). You may need to restart the application after applying the background color to see the problem.