Bug 160063 - LibreOffice wrongly puts some gray background when reopening OOXML files (DOCX, XLSX, PPTX) containing GDI metafile
Summary: LibreOffice wrongly puts some gray background when reopening OOXML files (DOC...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
24.2.1.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: EMF-WMF
  Show dependency treegraph
 
Reported: 2024-03-06 14:24 UTC by Piotr Osada
Modified: 2024-09-27 14:45 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Word&Writer_side-by-side.png (111.83 KB, image/png)
2024-03-06 14:28 UTC, Piotr Osada
Details
Affected-GDI (53.42 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-03-06 14:29 UTC, Piotr Osada
Details
OOXML with affected GDI in LO (162.33 KB, image/png)
2024-03-06 14:30 UTC, Piotr Osada
Details
PDF causing problem (246.82 KB, application/pdf)
2024-03-06 14:34 UTC, Piotr Osada
Details
7-Zip archives ODF vs OOXML (48.06 KB, image/png)
2024-09-26 11:04 UTC, Piotr Osada
Details
ODS archive (22.38 KB, image/png)
2024-09-26 11:05 UTC, Piotr Osada
Details
DOCX archive (19.36 KB, image/png)
2024-09-26 11:05 UTC, Piotr Osada
Details
ODS source file (266.89 KB, application/vnd.oasis.opendocument.text)
2024-09-26 11:17 UTC, Piotr Osada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Osada 2024-03-06 14:24:57 UTC
Description:
In some circumstances, working with OOXML, GDI inserted graphics can be rendered with a different appearance than the original PDF source.

Steps to Reproduce:
1. Open attached 'Malvern.pdf' in LibreOffice Draw
2. Select all, and copy
3. Insert into eg. Writer as GDI (Ctrl+Shift+V)
4. Save as OOXML format (eg. .docx)
5. Reopen

Actual Results:
A gray background is displayed in the region of footer.

Expected Results:
The footer should have a white/transparent background.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.2.1.2 (X86_64) / LibreOffice Community
Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac
CPU threads: 8; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: pl-PL (en_US); UI: en-US
Calc: threaded
Comment 1 Piotr Osada 2024-03-06 14:28:04 UTC
Created attachment 192990 [details]
Word&Writer_side-by-side.png
Comment 2 Piotr Osada 2024-03-06 14:29:03 UTC
Created attachment 192991 [details]
Affected-GDI
Comment 3 Piotr Osada 2024-03-06 14:30:39 UTC
Created attachment 192992 [details]
OOXML with affected GDI in LO
Comment 4 Piotr Osada 2024-03-06 14:34:40 UTC
Created attachment 192993 [details]
PDF causing problem

This PDF was edited in Master PDF Editor. I assure, that untouched file, directly after export form Malvern software causes the same behaviour.
Comment 5 wjsim 2024-03-07 20:16:54 UTC
Thank you for reporting the bug. I can confirm that the bug is present in

Version: 24.2.1.2 (X86_64) / LibreOffice Community
Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac
CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

As well as:

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6a064b1967e06e40be40817deff99d00c1a8554f
CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 6 Mike Kaganski 2024-09-26 04:00:14 UTC
Why did you make it block GDI Limit (bug 105469)? Did you even read the description and comments of it?
Comment 7 Piotr Osada 2024-09-26 11:04:24 UTC
Created attachment 196712 [details]
7-Zip archives ODF vs OOXML

(In reply to Mike Kaganski from comment #6)
> Why did you make it block GDI Limit (bug 105469)? Did you even read the
> description and comments of it?

I've tried to better categorize this ticket...

(In reply to Mike Kaganski from bug 105469 comment #2)
> ...
> Please do not add just anything having keyword GDI.

... and chose GDI Limit (bug 105469) because of 'GDI' in the name. Although, I still not understand what this [META] category is about, I see that this was indeed an inappropriate block. Please excuse my ignorance.

I think that this ticket is also not about [META] Bug 104522 (DOCX-Header-Footer), as Bogdan Buzea suggested (2024-03-24 11:41:20 UTC).

As 7-Zip opened affected DOCX archive ('Affected-GDI' attachment 192991 [details]) contains *image1.wmf* the [META] Bug 103859 (EMF-WMF) should be better category.

It looks like there is some issue with converting attachment from SVM to WMF.
Comment 8 Piotr Osada 2024-09-26 11:05:15 UTC
Created attachment 196713 [details]
ODS archive
Comment 9 Piotr Osada 2024-09-26 11:05:36 UTC
Created attachment 196714 [details]
DOCX archive
Comment 10 Piotr Osada 2024-09-26 11:17:06 UTC
Created attachment 196715 [details]
ODS source file