Bug 275288

Summary: kword:msoffice2000: Picture in the footer is displaying in the middle of the page.
Product: [Applications] calligrawords Reporter: swathi <swathi.vegesna999>
Component: generalAssignee: Calligra Words Bugs <calligra-words-bugs-null>
Severity: normal CC: mail, matus.uzak
Priority: NOR    
Version: Git   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Test data
Screenshot in MS Office
Screenshot in Calligra Words
Test Data - 1st page only
Screenshot Words - Test Data - 1st page only
Screenshot LO - msword filter output

Description swathi 2011-06-09 15:54:51 UTC
Created attachment 60828 [details]
Test data

Version: git checkout 8288143b7c1f9f9005209b55b651875219b0e9d6
        (Using KDE 4.5.5)                
     OS: Kubuntu 10.10
Test data is in word 2003 format which has picture in the footer.
Open the same document in Calligra Words , check the display of the picture in the footer.

Expected outcome:
Picture should be displayed with in the footer place. (bottom of the page).
Actual outcome:
Picture is displaying in the middle of the page.
Please check the screenshots attached.
Comment 1 swathi 2011-06-09 15:56:13 UTC
Created attachment 60829 [details]
Screenshot in MS Office

In the 1st page,image is not displaying.
Comment 2 swathi 2011-06-09 15:57:07 UTC
Created attachment 60830 [details]
Screenshot in Calligra Words
Comment 3 Sebastian Sauer 2011-06-09 17:39:49 UTC
It's a filter-issue cause if I use koconverter and load the produced ODT into oowriter then the image is displayed in the middle of the page too rather then at the bottom.
Comment 4 Matus Uzak 2013-07-23 21:31:44 UTC
Created attachment 81303 [details]
Test Data - 1st page only
Comment 5 Matus Uzak 2013-07-23 21:35:21 UTC
Created attachment 81304 [details]
Screenshot Words - Test Data - 1st page only
Comment 6 Matus Uzak 2013-07-23 21:38:01 UTC
Created attachment 81305 [details]
Screenshot LO - msword filter output
Comment 7 Matus Uzak 2013-07-23 21:49:07 UTC
MS Word filter is Ok.   Correct values of margins and padding have been determined, LO determined 0 values.

It's a layout issue as can be seen on attachment 81304 [details] and attachment 81305 [details], which  display output of the filter in Words and LO.  The picture is below the page area.  

Attachment 81303 [details] contains only the 1st page of the original test data.
Comment 8 Camilla Boemann 2015-02-09 21:29:47 UTC
Git commit 7b7162d6f4a3da08c913ec92bbefe98cdae25593 by C. Boemann.
Committed on 09/02/2015 at 11:37.
Pushed by boemann into branch 'calligra/2.9'.

Page layout of footer that is larger than the two times bottom pagemargin would disappear
from the first page because we looked at the center position of the footer when finding it
so it would eventually grow below the bottom of the page

Also fixed that we looked at a header setting when layouting the footer

M  +7    -6    words/part/frames/KWFrameLayout.cpp