Bug 64876

Summary: FORMATTING: Header / Footer of RTF does not show correctly as it contains text sharing the same area as the body of the text
Product: LibreOffice Reporter: lduchon <lduchon>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: alexpikptz, attila.szucs, bugzilla, kelemeng, libreoffice, pje335-lo
Priority: medium Keywords: filter:rtf
Version: 4.0.0.3 release   
Hardware: x86-64 (AMD64)   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 81234    
Attachments: Sample document with the issue
MSWordViewer
minimum test case with word 2013 (41 kb)
minimum test case with word 2007 (36 kb)
minimum test case with WPS office (22 kb)
screenshot word 2013 minimum test case
The example file in Word and Writer master

Description lduchon 2013-05-22 17:44:23 UTC
Created attachment 79676 [details]
Sample document with the issue

Attached document.RTF file renders incorrectly LibreOffice 4.0 Writer (on Windows).
The reason seems to be header (or footer) that is used as a "side-text" to the body of the document.
This results into unreadable document.
Comment 1 Thomas van der Meulen [retired] 2013-05-23 18:15:19 UTC
Thank you for your bug report, I can reproduce this bug running LibreOffice 4.0.3.3 on Mac osx 10.8.3. it looks like some text disapered and it is alle moved.
Comment 2 Alexandr 2014-08-07 18:35:39 UTC
Created attachment 104245 [details]
MSWordViewer

Reproducible with LibreOffice 4.2.5 and 4.3.1.1 on Debian. I attach a screenshot of MS Word Viewer as a reference representation.
Comment 3 QA Administrators 2015-09-04 02:48:55 UTC Comment hidden (obsolete)
Comment 4 Alexandr 2015-09-19 17:26:09 UTC
In Libre Office 5.0.1 some text is moved to the second page.
Comment 5 Robinson Tryon (qubit) 2015-12-10 01:08:12 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2017-01-03 19:39:30 UTC Comment hidden (obsolete)
Comment 7 Mike 2018-02-10 06:37:39 UTC
Still present in 

Version: 6.1.0.0.alpha0+ (x64)
Build ID: b1069ea6f25daa268eb4358d5ea20094b46ef347
CPU threads: 4; OS: Windows 6.1; UI render: default; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-02-06_23:49:25
Locale: de-DE (de_DE); Calc: group

I made three minimum test cases from the sample document. They all have the same content, but differ in size. Word 2013 (41 kb), Word 2007 (36 kb) and WPS Office (22 kb).
Comment 8 Mike 2018-02-10 06:38:43 UTC
Created attachment 139749 [details]
minimum test case with word 2013 (41 kb)
Comment 9 Mike 2018-02-10 06:39:17 UTC
Created attachment 139750 [details]
minimum test case with word 2007 (36 kb)
Comment 10 Mike 2018-02-10 06:39:55 UTC
Created attachment 139751 [details]
minimum test case with WPS office (22 kb)
Comment 11 Mike 2018-02-10 06:43:21 UTC
Created attachment 139752 [details]
screenshot word 2013 minimum test case
Comment 12 QA Administrators 2019-02-11 03:40:00 UTC Comment hidden (obsolete)
Comment 13 QA Administrators 2021-02-11 04:11:31 UTC Comment hidden (obsolete)
Comment 14 Mike 2021-02-24 15:18:46 UTC
Reproduced

Version: 7.1.0.3 (x64) / LibreOffice Community
Build ID: f6099ecf3d29644b5008cc8f48f42f4a40986e4c
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL
Comment 15 Gabor Kelemen (allotropia) 2022-01-27 19:39:04 UTC
Created attachment 177850 [details]
The example file in Word and Writer master

This seems to have been fixed (rather: worked around) since:

https://git.libreoffice.org/core/+/11c61e5f0544966f3901c8fb4270bb07424942f1

author	Attila Szűcs <szucs.attila3@nisz.hu>	Fri Jun 25 10:37:47 2021 +0200
committer	László Németh <nemeth@numbertext.org>	Mon Jul 05 12:26:08 2021 +0200

tdf#119952 DOCX import: fix negative page margins

of course this is not a real solution, Writer should support negative margins (overlay margin counted from the bottom of page) properly.
Comment 16 Gabor Kelemen (allotropia) 2022-01-27 19:39:54 UTC
Thanks Attila for making this one go away as well :)

*** This bug has been marked as a duplicate of bug 119952 ***