<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 - Mail merge does not reliably apply doc's setting to (not) print empty pages"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=131849">131849</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Mail merge does not reliably apply doc's setting to (not) print empty pages
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>m.weghorn@posteo.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=159289" name="attach_159289" title="sample doc (1 page)">attachment 159289</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=159289&action=edit" title="sample doc (1 page)">[details]</a></span>
sample doc (1 page)

Manual changes to "Print automatically inserted blank pages" are not applied
during mail merge when printer properties dialog has been opened as well.

Steps to reproduce:

1) open attached document "testdoc.odt" (or use any other file that has just a
single page)
2) open printer settings dialog: "File" -> "Printer Settings..."
3) select "Properties..." to open the printer properties dialog
4) don't change anything, select "OK"
5) select "Options..." to open dialog for document-specific print options
6) unselect "Print automatically inserted blank pages", select "OK"
7) select "OK" to confirm and close the dialog
8) run LO mail merge wizard ("Tools" -> "Mail Merge Wizard"), using the
attached sample data "4_v01.ods" which has 4 records
9) Select "Print Merged Documents" in the mail merge toolbar and print
10) check the printout

Result: The printout contains automatically inserted blank pages.

Expected result: The printout should not contain extra blank pages, because the
corresponding option has been unselected in step 6.


Further notes:

1) When leaving out step 3 and 4 from description above, the issue is **not**
reproducible.
2) The above steps apply for a fresh user profile (having a different default
value for "Print empty pages" in Writer's options may change behaviour)
3) The issue can be reproduced without doing actual printouts by setting up a
dummy printer on Linux that prints to a file using the attached PPD File
"tofile-dummy.ppd" as follows:

* set up printer:
  sudo lpadmin -p tofile-dummy -v file:/tmp/tofile-dummy -P
<PATH_TO>/tofile-dummy.ppd

* set as default printer (so it's preselected in LO):
  lpoptions -d tofile-dummy

* run the steps described above to reproduce the issue

* check the PDF file that LO generates for printing in directory
`/var/spool/cups/`. The blank pages are visible there when opening the file in
a PDF reader. (and 'pdfinfo <FILE> says that the file has 7 pages, while it
should only have 4)</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>