Bug 155133 - FILEOPEN DOCX Image in background does not overlap header/footer content
Summary: FILEOPEN DOCX Image in background does not overlap header/footer content
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Header-Footer
  Show dependency treegraph
 
Reported: 2023-05-03 09:50 UTC by Gabor Kelemen (allotropia)
Modified: 2024-06-20 16:02 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Word 2013 (18.40 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-05-03 09:50 UTC, Gabor Kelemen (allotropia)
Details
The example file in Word 2013 and Writer master (78.58 KB, image/png)
2023-05-03 09:51 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2023-05-03 09:50:42 UTC
Created attachment 187066 [details]
Example file from Word 2013

Attached example document has one In background image which almost fills the page.
In Word this image hides the text in the header and footer, but in Writer it does not.

1. Open attached file
-> You can see the text in the header/footer, but these are hidden by the image in Word

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: fb3a6b82b55a298eabf8f431f1451dc826642acd
CPU threads: 14; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: threaded

and way back to 4.3. Before that even the body text was not visible (incorrectly), only the line numbering.
Comment 1 Gabor Kelemen (allotropia) 2023-05-03 09:51:15 UTC
Created attachment 187067 [details]
The example file in Word 2013 and Writer master
Comment 2 Stéphane Guillou (stragu) 2023-05-04 13:47:55 UTC
I can see the same in:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 83b1f6b58a30bdb589e9ce73deef39f021aebde1
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Purple rectangle is a filled drawing object. Using "bring to front" repeatedly won't make the text disappear. But can use "bring to foreground" to overlap both body and header/footer.

How was the the file created in Word? Isn't this a Word bug, which should really not hide any content when something is in the background?

But I can confirm that OnlyOffice also has hidden header/footer.
Comment 3 Gabor Kelemen (allotropia) 2023-05-11 10:33:08 UTC
(In reply to Stéphane Guillou (stragu) from comment #2)
> Purple rectangle is a filled drawing object. Using "bring to front"
> repeatedly won't make the text disappear. But can use "bring to foreground"
> to overlap both body and header/footer.

In the original customer file they had a real "company logo" image in the background.
I could not find a nice enough page sized image at hand, so stole something similar from another bugdoc from grouped shape topic.

> 
> How was the the file created in Word? Isn't this a Word bug, which should
> really not hide any content when something is in the background?

The way this looks: page sized "company logo" image on first page of document put to background, hiding the header/footer which is different from the ones in the next section, so not relevant anyways - only it becomes visible in Writer. Then some text in front of the image, as title/subtitle of the document.

This is not a Word bug, this is how it works.
Comment 4 Stéphane Guillou (stragu) 2023-05-11 11:29:44 UTC
Right, thanks Gabor.

Currently (testing in 7.5.3.2), if I insert an image and then go Right click > Properties > Wrap > Options > In Background, the image will be placed below both the body text and the header/footer.
So my question is: should a fix to this bug also change the current LO behaviour, when moving a picture to the background?
Is it currently possible to replicate the Word behaviour in LO, i.e. placing an image behind the body text but in front of the header/footer?
Comment 5 Justin L 2023-06-01 02:22:46 UTC
I don't think you will win this battle. LO would need a fundamental change in how it paints the header/footer. We've been fighting this battle forever. See bug 143793 for some of the trouble it has caused.