Download it now!
Bug 112488 - Embedded images in header disappear after saving in docx format
Summary: Embedded images in header disappear after saving in docx format
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
5.0 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
Keywords: filter:docx
Depends on:
Blocks: DOCX-Header-Footer
  Show dependency treegraph
Reported: 2017-09-19 09:09 UTC by fabrizio
Modified: 2019-12-19 17:41 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

Testcase file (86.18 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-09-19 09:16 UTC, fabrizio

Note You need to log in before you can comment on or make changes to this bug.
Description fabrizio 2017-09-19 09:09:00 UTC
Lots of DOCX documents coming from MSWord that have images in their header are not rendered correctly after saving them using LibreOffice and keeping the same DOCX format.

This happens often in documents that have multiple pages and different headers between the first page and the other ones.
As you can see in the example file that I've attached to this bug, if you try to save the file with LibreOffice, the header images from page 3 to 4 will disappear.

I'm using Libre x64 under Windows 8.1 but the problem is present under Ubuntu Linux, as well.

Steps to Reproduce:
Can't reproduce it from scratch. However you can use the example file I've attached.
1. Open the file with LibreOffice. Check that the header image is displayed in all the pages.
2. Save it again keeping the DOCX format
3. Reopen it (using MSWord or Libreoffice)
4. Check that from page 3 the header image is missing.

Actual Results:  
No header images from page 3

Expected Results:
I'm expecting that all the pages have the same header image that was displayed before saving the document.

Reproducible: Couldn't Reproduce

User Profile Reset: No

Additional Info:

User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0
Comment 1 fabrizio 2017-09-19 09:15:19 UTC
Please note that sometimes the images from page 3 aren't displayed *even before* saving the document, while they're present if you open the document using MSWord.
Comment 2 fabrizio 2017-09-19 09:16:07 UTC
Created attachment 136362 [details]
Testcase file
Comment 3 Xisco Faulí 2017-09-19 10:46:30 UTC
The problem is at import time as the image in header is only displayed in first and second page, but not in the third and the forth. I guess this is the same issue as in bug 57155


Thanks for reporting this issue!

*** This bug has been marked as a duplicate of bug 57155 ***
Comment 4 Luke 2018-02-26 00:38:30 UTC
Xisco Faulí,
I can't see how this could possibly be a dupe. This opens the file correctly and is a file SAVE issue. The other is a file OPEN issue. Highly doubt they are the same.
Comment 5 QA Administrators 2019-02-27 03:56:20 UTC Comment hidden (obsolete)
Comment 6 Samuel Mehrbrodt (CIB) 2019-12-19 17:41:45 UTC
This seems to work correctly with 

Build ID: 6015634de5ada0f9dda9bb4354b2939d8f015a27
CPU threads: 8; OS: Linux 5.3; UI render: default; VCL: gtk3; 
Locale: de-DE (de_DE.UTF-8); UI-Language: en-US
Calc: threaded