Bug 49425 - DOCX import: frame with page number in footer wrongly positioned (not in frame)
Summary: DOCX import: frame with page number in footer wrongly positioned (not in frame)
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.3 release
Hardware: Other All
: high normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-03 05:46 UTC by Tobias Burnus
Modified: 2014-04-20 03:10 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Burnus 2012-05-03 05:46:57 UTC
Follow up to bug 37012.

The DOCX file (attachment 46479 [details]) contains a footer which looks in Microsoft Word 2003 SP3 as follows:

    DRAFT                        1               Customer’s Initials ______

In LibreOffice 3.5.1.2, the result is:

  1
  DRAFT	                                         Customer’s Initials ______


Position:

In MSO, the page number is in a frame and located at the center of the line - sharing the baseline with "DRAFT ...".

In LO, the page number is directly in the footer (and not in a frame) and separated from the "DRAFT ..." by a line break.

In MSO, the settings frame settings for the page number are: wrapping = around, width = auto, height = auto, horizontal position = center relative to margin, distance from text = 0. Vertical position = 0cm relative to paragraph, distance from text = 0cm. Move with text = true, lock anchor = false.
Comment 1 Tobias Burnus 2012-05-04 06:36:25 UTC
Same result with 3.5.3.2.

If one looks at the file "word/footer2.xml", one sees the following. The first block is in a frame - the second one is the normal foot-note text

<w:ftr>
 <w:p w:rsidR="00DD70C3" w:rsidRDefault="00DD70C3">
  <w:pPr>
    <w:pStyle w:val="Footer"/>
    <w:framePr w:wrap="around" w:vAnchor="text" w:hAnchor="margin"
               w:xAlign="center" w:y="1"/>
    <w:rPr>
      <w:rStyle w:val="PageNumber"/>
      <w:rFonts w:ascii="Arial" w:hAnsi="Arial" w:cs="Arial"/>
      <w:sz w:val="16"/><w:szCs w:val="20"/>
    </w:rPr>
  </w:pPr>
  <w:r>
   ...
  </w:r><w:r>
   <w:rPr>
     <w:rStyle w:val="PageNumber"/>
     <w:rFonts w:ascii="Arial" w:hAnsi="Arial" w:cs="Arial"/>
     <w:sz w:val="16"/><w:szCs w:val="20"/>
   </w:rPr>
   <w:instrText xml:space="preserve">PAGE  </w:instrText>
  </w:r>
  ...
 </w:p>


 <w:p w:rsidR="00DD70C3" w:rsidRPr="00867F64" w:rsidRDefault="00DD70C3"
      w:rsidP="00867F64">
  ...
  <w:r>
   <w:rPr>
     <w:rFonts w:ascii="Arial" w:hAnsi="Arial" w:cs="Arial"/><w:b/>
     <w:sz w:val="16"/><w:szCs w:val="16"/>
   </w:rPr>
   <w:t>DRAFT</w:t>
  </w:r>
 </w:p>
 ...
</w:ftr>
Comment 2 Joel Madero 2012-10-30 18:46:39 UTC
Confirmed, footers do not look the same. Compared Microsoft Excel 2007 to LibO 3.6.1.2. 

Marking as NEW and prioritizing.

Normal: Can prevent high quality work and/or require not using a major feature (footers). Also, compatibility issues where the document will look different on MS vs. LibO.

High: Footers relatively common, professional work requires this and with the growth of .docx this could be a big issue for our business and academic users.
Comment 3 Samuel Mehrbrodt (allotropia) 2014-01-23 14:05:56 UTC
Confirmed in 4.2.
Comment 4 Mike Kaganski 2014-04-20 03:10:39 UTC
Still REPRODUCIBLE with 4.2.2.1 under Win7x64.
NOT reproducible anymore with 4.2.3.1 and later.

As the specific commit is unknown, resolwing as WORKSFORME.

Thank you for participating in LO improvement!