Bug 118392

Summary: Document watermark takes over the whole document
Product: LibreOffice Reporter: Lior Kaplan <kaplanlior>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED NOTOURBUG    
Severity: normal CC: amiadb, aron.budea, susanjean05, xiscofauli
Priority: medium Keywords: filter:docx
Version: 6.0.4.2 release   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=124647
https://bugs.documentfoundation.org/show_bug.cgi?id=126004
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 104520, 108540    
Attachments: screen shot from MS Office 2013
screen shot from LibO 5.1.6
testcase document
PDF export of the testdoc MS Office 2013
Results of test showing number of pages
Watermark issue screenshot from 6.0
Watermark issue screenshot from 6.2

Description Lior Kaplan 2018-06-26 13:37:26 UTC
Description:
I'm trying to Open this document from Isreal's innovation autority and while it looks fine in MS Office 2013 in LibO it gets completely proportional (50 pages instead of 14).

Steps to Reproduce:
Problematic file at https://innovationisrael.org.il/sites/default/files/field/forms/%D7%91%D7%A7%D7%A9%D7%94.%D7%9B%D7%9C%D7%9C%D7%99_0%20%283%29.docx taken from https://innovationisrael.org.il/content/%D7%98%D7%95%D7%A4%D7%A1-%D7%91%D7%A7%D7%A9%D7%94-%D7%9B%D7%9C%D7%9C%D7%99 (the pages mentions the document was last changed at October 15, 2017).

Just open the file and notice the text location and number of pages.



Actual Results:
the text and input fields are very distant due to not parsing the elements correctly.

Expected Results:
similar to MS Office


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 Lior Kaplan 2018-06-26 13:38:11 UTC
Created attachment 143129 [details]
screen shot from MS Office 2013
Comment 2 Lior Kaplan 2018-06-26 13:39:28 UTC
Created attachment 143130 [details]
screen shot from LibO 5.1.6

Also looks the same on newer versions like 6.0.x
Comment 3 Lior Kaplan 2018-06-26 13:41:28 UTC
Created attachment 143131 [details]
testcase document
Comment 4 Lior Kaplan 2018-06-26 13:43:07 UTC
Created attachment 143132 [details]
PDF export of the testdoc MS Office 2013
Comment 5 Timur 2018-06-26 14:36:29 UTC
Problem is: MSO opens this older DOCX as 14 pages, but if saved there than it opens many pages more. 
So, I'm not sure anything will ever be solved with this file.
Comment 6 Susan Gessing 2018-06-26 21:04:57 UTC
Created attachment 143151 [details]
Results of test showing number of pages

Performed test and the file opened with more pages (21) than it does in Word as mentioned in the bug description. In my case, I use Word 2016, fyi.
Comment 7 Lior Kaplan 2018-06-27 08:00:01 UTC
Thanks Timur and Susan. Could you attach the file saved in later versions? Does it affect the number of page in LibO?

The problem is layout of the document, which symptoms as increased number of pages. Compare how is it seen in MS Word to LibO - the "2004" background is misplaced completely and the text elements appear in different location.
Comment 8 Susan Gessing 2018-06-27 21:41:05 UTC
Created attachment 143175 [details]
Watermark issue screenshot from 6.0
Comment 9 Susan Gessing 2018-06-27 21:41:46 UTC
Created attachment 143176 [details]
Watermark issue screenshot from 6.2
Comment 10 Xisco FaulĂ­ 2018-07-02 22:48:14 UTC
Hi Lior,
Could it be possible to create a minimal document illustrating the problem you're refering?
Comment 11 Timur 2020-09-21 11:17:46 UTC
MSO 2016 opens this older DOCX as 14 pages, but if resaved and reopened in MSO than it opens many pages more, maybe infinite. 
I also tried to save only 1st page in MSO, it opens 38 pages. 
Rarely but sometimes we have such situations and choice is to close the bug. 
Hard and practically impossible for LO to emulate different Lo behavior. 
If you disagree feel free to reopen, but only if explanation is provided or if attached some minimal docx which behaves properly in MSO if resaved.