<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 - Writer inserts empty pages when opening a generated file"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=120212">120212</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Writer inserts empty pages when opening a generated file
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.0.6.2 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>Severity</th>
          <td>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>marko.mahnic@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=145276" name="attach_145276" title="git-diff converted to odt">attachment 145276</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=145276&action=edit" title="git-diff converted to odt">[details]</a></span>
git-diff converted to odt

The attached generated file has no soft page breaks defined. When it is loaded
into Writer, soft page breaks are added by the Writer, but also a number of
empty pages are created. The file that should be 12-13 pages long has 41 pages
including empty ones.

The problem can be fixed in Writer by saving and reloading the file a few
times. In some documents (some) empty pages are removed automatically when
editing or navigating the file, but I see no rule when that happens.

I think empty pages started appearing when sections were introduced in the
generated file.

I see this happening on Linux and Windows.

The issue may be similar to this closed bug:
<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INSUFFICIENTDATA - Blank pages are inserted when opening a writer document on another PC"
   href="show_bug.cgi?id=119584">https://bugs.documentfoundation.org/show_bug.cgi?id=119584</a></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>