<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - FILESAVE XLSX Page header+footer margins overwritten with values in wrong units"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=117229">117229</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>FILESAVE XLSX Page header+footer margins overwritten with values in wrong units
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.4.5.1 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Keywords</th>
          <td>filter:xlsx
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Calc
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kelemeng@ubuntu.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=141625" name="attach_141625" title="Simple xlsx with default margins">attachment 141625</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=141625&action=edit" title="Simple xlsx with default margins">[details]</a></span>
Simple xlsx with default margins

Attached simple XLSX contains by default the following margin settings in
xl/worksheets/sheet1.xml:

<pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3"
footer="0.3"/>

This results in 1,91 cm top/bottom margins, 1,78 cm left/right margins and 0,76
cm header/footer margins in Excel – so the above values are in inches.

Without any changes to header/footer settings, or enabling them in the Page
dialog, this is converted into:

<pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75"
header="0.511805555555555" footer="0.511805555555555"/>

These header-footer values roughly match the default 0,5 cm default in the Page
window.

Opening this file in Excel causes the header-footer to become 1,3 cm - or ~0,51
inches.

The header and footer values should remain unchanged by a simple resave, and
custom values should be converted to inches before saving.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>