Bug 143933 - FILEOPEN DOCX Images in header/footer can’t be positioned partly off page (compatibilityMode 14)
Summary: FILEOPEN DOCX Images in header/footer can’t be positioned partly off page (co...
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-Images DOCX-Header-Footer
  Show dependency treegraph
 
Reported: 2021-08-18 13:29 UTC by NISZ LibreOffice Team
Modified: 2023-11-21 02:33 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Word with square and tight wrapped images in header/footer (104.93 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-08-18 13:29 UTC, NISZ LibreOffice Team
Details
Example file from Word with through and top/bottom wrapped images in header/footer (99.51 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-08-18 13:29 UTC, NISZ LibreOffice Team
Details
Example file from Word with behind text and in front of text wrapped images in header/footer (101.33 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-08-18 13:30 UTC, NISZ LibreOffice Team
Details
Screenshot of the document with square and tight wrapped images side by side in Word and Writer (229.92 KB, image/png)
2021-08-18 13:30 UTC, NISZ LibreOffice Team
Details
Screenshot of the document with through and top/bottom wrapped images side by side in Word and Writer (184.18 KB, image/png)
2021-08-18 13:31 UTC, NISZ LibreOffice Team
Details
Screenshot of the document with behind text and in front of text wrapped images side by side in Word and Writer (208.91 KB, image/png)
2021-08-18 13:31 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NISZ LibreOffice Team 2021-08-18 13:29:34 UTC
Created attachment 174366 [details]
Example file from Word with square and tight wrapped images in header/footer

When an image is relatively positioned to page (i.e. Move object with text is OFF) and partly positioned outside of the page area, this setting is imported correctly from DOCX. 
However if the same image is placed in the header/footer, the setting is not always imported correctly and the image is entirely inside the page area.

Steps to reproduce:
    1. Open attached files that have examples with all six wrap types for images partly outside of the page area, compare to Word. The examples are in compatibility mode 14, behavior is a bit different in compatibility mode 15.

Actual results:
Image-square-tight-wrap_C14.docx: 
No bleed margin in header/footer for square wrapped image (top) and Tight wrapped image (bottom).
Text is behind the image in the footer, instead of being in front of it.

Image-through-topbottom-wrap_C14.docx:
No bleed margin in footer for Top and Bottom wrapped image (bottom).
The Trough wrapped image in header is overlapping the text.

Image-behind-front-wrap_C14.docx:
No bleed margin in footer for In front of text wrapped image (bottom).

Expected results:
Image-square-tight-wrap_C14.docx: 
Bleed margin should be allowed in header/footer for square wrapped image (top) and Tight wrapped image (bottom).
In the document body bleed margin is not allowed in Word for these two wrap types, this works fine in Writer.
Text should be in front of the image in the footer. Manually enabling the “In Background” property in the footer fixes the layout.

Image-through-topbottom-wrap_C14.docx:
Bleed margin should be allowed in footer for Top and Bottom wrapped image (bottom).
The Trough wrapped image in header is overlapping the text, the “In Background” property should be enabled.

Image-behind-front-wrap_C14.docx:
Bleed margin should be allowed in footer for In front of text wrapped image (bottom).
The In front of text wrapped image in footer is overlapping the text, the “In Background” property should be enabled.

LibreOffice details:
Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 5aac78e5fb241050a86714687e9ff8804588ae3c
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL
Comment 1 NISZ LibreOffice Team 2021-08-18 13:29:56 UTC
Created attachment 174367 [details]
Example file from Word with through and top/bottom wrapped images in header/footer
Comment 2 NISZ LibreOffice Team 2021-08-18 13:30:18 UTC
Created attachment 174368 [details]
Example file from Word with behind text and in front of text wrapped images in header/footer
Comment 3 NISZ LibreOffice Team 2021-08-18 13:30:42 UTC
Created attachment 174369 [details]
Screenshot of the document with square and tight wrapped images side by side in Word and Writer
Comment 4 NISZ LibreOffice Team 2021-08-18 13:31:00 UTC
Created attachment 174370 [details]
Screenshot of the document with through and top/bottom wrapped images side by side in Word and Writer
Comment 5 NISZ LibreOffice Team 2021-08-18 13:31:18 UTC
Created attachment 174371 [details]
Screenshot of the document with behind text and in front of text wrapped images side by side in Word and Writer
Comment 6 NISZ LibreOffice Team 2021-08-18 13:37:09 UTC
Sorry for the many example files and cases, this report started with analyzing the example file of bug 112855 after seeing here that bleed margin is somewhat supported in docx import: 
https://bugs.documentfoundation.org/show_bug.cgi?id=140106#c2
and then things spun out of control a bit :).
Comment 7 Dieter 2021-09-02 10:46:36 UTC
I confirm it with

Version: 7.2.0.3 (x64) / LibreOffice Community
Build ID: 2a7ea282da28d665a7dc086360567b4aea27bf08
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

But I don't know, which compatibility mode I use. I can't find anything in Tools => Options = LibreOffice Writer => Compatibility
Comment 8 QA Administrators 2023-09-03 03:16:02 UTC
Dear NISZ LibreOffice Team,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug