Bug 160325 - Page Style - Transparency Gradient has reversed colors on Export to PDF
Summary: Page Style - Transparency Gradient has reversed colors on Export to PDF
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
24.2.1.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: PDF-Export Writer-Styles-Page
  Show dependency treegraph
 
Reported: 2024-03-23 04:36 UTC by Frank Zimmerman
Modified: 2024-04-13 17:12 UTC (History)
1 user (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 Frank Zimmerman 2024-03-23 04:36:35 UTC
Description:
I often use a transparency gradient to make the Title more clear on a Book Cover (it helps fade out the background behind the text). Sometimes the background is not just a picture, but a color. I noticed, since the new 24 release, that some of these gradients produce reversed coloring, on export to PDF.

Steps to Reproduce:
1. Create a new document in Writer.
2. Make a custom Page Style for the page.
3. Right-click that Style and choose "Edit Style".
4. In the Page Style dialog, choose the Area tab, and pick a color.
4. Choose the Transparency tab, for Area Transparency Mode choose "Gradient."
5. Choose any of the first three Gradients: Linear, Axial, or Radial.
6. Set the Start value to 0%, and the End Value to 100%.
7. Choose OK to close the dialog.
8. Export to PDF. View the PDF.

Actual Results:
If you chose, for example, Red as the background color, with a Radial transparency, you should see (in Writer) a white center fading to red on the edges.

In the PDF, you see the opposite: a Red center, fading to white on the edges.

Expected Results:
This used to work fine in the 7.x release (and all other previous ones that I can remember over the last 8 years).


Reproducible: Always


User Profile Reset: Yes

Additional Info:
I'm not sure this is relevant, but I'm using an Nvidia RTX A4000 graphics card.

It's shouldn't be related to this particular computer, as I just set up another computer and did a fresh install of LibreOffice, and it has the same problem.

Also, it seems to be confined to the first three Gradient types: Linear, Axial, or Radial. The other three types: Ellipsoid, Square, and Rectangular, seem to work as expected.
Comment 1 Naresh 2024-04-10 04:33:12 UTC
Hi Frank, Thank you for raising this ticket. I was able to replicate this issue so changing the status to NEW.

Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: da48488a73ddd66ea24cf16bbc4f7b9c08e9bea1
CPU threads: 4; OS: Windows 10.0 Build 22621; UI render: Skia/Vulkan; VCL: win
Locale: en-IN (en_IN); UI: en-US
Calc: threaded