Bug 148079 - Headers and Footers are being duplicated on fileopen of German? MSO .docx (not if resaved in MSO)
Summary: Headers and Footers are being duplicated on fileopen of German? MSO .docx (no...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: low normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Header-Footer
  Show dependency treegraph
 
Reported: 2022-03-19 10:05 UTC by René Pardon
Modified: 2022-08-29 23:55 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
duplicate footer text (268.23 KB, image/png)
2022-03-19 10:06 UTC, René Pardon
Details
header duplication (9.69 KB, image/jpeg)
2022-03-19 10:07 UTC, René Pardon
Details
example docx for reproducing the described bug (120.07 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-03-19 19:18 UTC, julian.garbotz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description René Pardon 2022-03-19 10:05:13 UTC
Description:
When converting a Word Document with libreoffice/soffice to PDF we encounter problems with duplicates being generated. No matter if we use table to format headers/footers or just plain text. I've tested this on Ubuntu and MacOS and can reproduce it on both systems every time.

Steps to Reproduce:
1. create a word document (header-footer-test.docx) with a header/footer
2. convert to PDF: `/opt/homebrew/bin/soffice --invisible --convert-to pdf header-footer-test.docx`
3. open the generated header-footer-test.pdf file and see duplicate headers/footers

Actual Results:
headers/footers are duplicated

Expected Results:
PDF should look like the Word Document


Reproducible: Always


User Profile Reset: Yes



Additional Info:
I had the problem on Ubuntu and installed the latest available version through Homebrew on my Macbook to reproduce this behaviour. So I had a fresh user profile.
Comment 1 René Pardon 2022-03-19 10:06:10 UTC
Created attachment 178964 [details]
duplicate footer text

add screenshot of duplicated text within footer
Comment 2 René Pardon 2022-03-19 10:07:39 UTC
Created attachment 178965 [details]
header duplication

another screenshot showing duplicate header while converting docx to pdf
Comment 3 Timur 2022-03-19 19:00:49 UTC Comment hidden (obsolete)
Comment 4 René Pardon 2022-03-19 19:07:44 UTC Comment hidden (obsolete)
Comment 5 julian.garbotz 2022-03-19 19:18:44 UTC
Created attachment 178975 [details]
example docx for reproducing the described bug
Comment 6 Timur 2022-03-20 08:50:01 UTC Comment hidden (obsolete)
Comment 7 René Pardon 2022-03-20 08:59:14 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2022-03-21 03:27:15 UTC Comment hidden (obsolete)
Comment 9 Timur 2022-03-21 08:24:11 UTC
More often than not problem is not convert but wrong ODT save as DOCX or wrong fileopen of MSO DOCX. 
And that's the case here. It's not wrong conversion, but wrong MSO DOCX fileopen. 

(Also wrong is to set Blocks without testing first. I remove that.)

But there's more. This DOCX is saved in MSO 2016 and opens wrong with double H/F test with OO and LO 7.4+, so Inherited. 
But opens with normal single H/F resaved in MSO 2016. MSO saved DOC also opens OK.
I confirm with Low priority.
Comment 10 Timur 2022-03-21 09:24:18 UTC
My MSO is English, not sure if possible that problem is with saving in German MSO only.