Bug 152536 - FILEOPEN DOCX gradient page background is imported as solid
Summary: FILEOPEN DOCX gradient page background is imported as solid
Status: RESOLVED DUPLICATE of bug 126533
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Hardware: All All
: medium normal
Assignee: Not Assigned
Keywords: filter:docx
Depends on:
Blocks: Object-Fill-Gradient
  Show dependency treegraph
Reported: 2022-12-16 00:37 UTC by Regina Henschel
Modified: 2024-02-16 16:10 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

File to reproduce missing gradient (19.58 KB, application/zip)
2022-12-16 00:37 UTC, Regina Henschel
Screenshot comparing Word with Writer (72.64 KB, image/png)
2022-12-16 00:38 UTC, Regina Henschel
Gradient background by LibreOffice (48.45 KB, application/vnd.oasis.opendocument.text)
2023-06-07 15:15 UTC, Regina Henschel

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2022-12-16 00:37:19 UTC
Created attachment 184168 [details]
File to reproduce missing gradient

A document with gradient page background fill is imported as solid fill although LibreOffice is able to use gradient page background.

Open attached file in Word and in Writer and compare the background.

I see the error in Version: (X86_64) / LibreOffice Community
Build ID: 9b46020c262045aed0beace4708565235c2523cc
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: CL threaded

And see it already in Version: (x64)
Build ID: c838ef25c16710f8838b1faec480ebba495259d0
CPU threads: 8; OS: Windows 6.19; UI render: default; 
Locale: de-DE (en_US); Calc: CL

So it is likely a missing feature. Version 4 was not able to render gradient background fill.
Comment 1 Regina Henschel 2022-12-16 00:38:02 UTC
Created attachment 184169 [details]
Screenshot comparing Word with Writer
Comment 2 Ezinne 2022-12-17 08:57:27 UTC
Reproducible in:

Version: (X86_64) / LibreOffice Community
Build ID: 4e4a31ac7d920c71e26ca4acd18c11ec2bd015bb
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 3 Regina Henschel 2023-06-07 15:15:45 UTC
Created attachment 187770 [details]
Gradient background by LibreOffice

The same error exists for export.

Word stores the gradient fill of a background as VML <fill> element. Such is able to describe linear and radial gradients even with multi-color.

This is a missing feature. When implemented, not only two-color gradients but also the now available multi-color gradients should be implemented.
Comment 4 Justin L 2024-02-16 16:10:04 UTC
Background Gradient.docx is not an MCGR example document.

*** This bug has been marked as a duplicate of bug 126533 ***