https://bugs.documentfoundation.org/show_bug.cgi?id=167656

            Bug ID: 167656
           Summary: PDF: 'Export to PDF' option in LO Draw 'File' tab
                    exports with dark background when using System dark
                    mode in 'Tools' > 'Options' > 'Appearance'.
           Product: LibreOffice
           Version: 25.2.4.3 release
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: minor
          Priority: medium
         Component: Draw
          Assignee: [email protected]
          Reporter: [email protected]

Description:
I wanted to use dark mode but like everything matching on system. This bug
appears in LO Draw, but not LO Writer.

So, in 'Tools' > 'Options' > 'Appearance', 
I set 'LibreOffice Themes' to 'Automatic' and set 'Options' > 'Appearance' to
'System', which is already set to dark mode.
Specifically, go to Windows 11 Settings > 'Personalization' > 'Colors' >
'Choose your mode' > 'Dark'.

When I go to export my work as PDF -- **not directly as PDF** -- and choose
lossless compression, my final PDF has the "correct" font color (being default
black) but a dark background. This is not expected as I have not set the
background color of the document itself to be black. 

Critically, **I have confirmed**: in 'Tools' > 'Options' > 'Appearance' >
'Customizations' > 'Items', when I select 'Document background' and change the
color from 'Automatic' to... well, anything, **the PDF exports with that
background color**.

So in essence, I, user, am expecting background appearance in Draw to *not*
affect export appearance in PDF. As mentioned earlier, works as expected in
Writer.

Steps to Reproduce:
1. Set system to dark mode (Windows 11 Settings > 'Personalization' > 'Colors'
> 'Choose your mode' > 'Dark')
2. Create document in draw with text boxes
3. Set appearance preferences to dark ( 'Tools' > 'Options' > 'Appearance',
set 'LibreOffice Themes' to 'Automatic' and set 'Options' > 'Appearance' to
'System')
4. In the same menu, confirm that 'Customizations' > 'Items' > 'Document Page'
is set to 'Automatic'
5. Confirm that page background is set to 'None' ('Page' > 'Page Properties')
6. Export as PDF ('File' > 'Export As' > 'Export as PDF...'). Note: I export
with lossless compression and no other checked boxes.
7. View PDF

Actual Results:
The PDF that I exported had a dark background (not quite "black", but very dark
gray making the PDF all but unreadable). The text was black as expected.

Expected Results:
The software, as Writer does, should have exported the PDF with a white
background, ignoring the 'Appearance' color settings.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 25.2.4.3 (X86_64) / LibreOffice Community
Build ID: 33e196637044ead23f5c3226cde09b47731f7e27
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 26100); UI render:
Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to