<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 - Convert to pdf on command line generates wrong pdf."
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=139237">139237</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Convert to pdf on command line generates wrong pdf.
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>7.0.4.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>hans@deragon.biz
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=168495" name="attach_168495" title="ODT source file.">attachment 168495</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=168495&action=edit" title="ODT source file.">[details]</a></span>
ODT source file.

libreoffice --headless --convert-to pdf --outdir . file.odt

...will generate file.pdf which will not visually match file.odt.

However, if from LibreOffice GUI one uses File -> Export As -> Export Directly
as PDF, the generated output file is ok.

I expect the same output on the command line than in the GUI.

The file contains an embedded Calc spreadsheet which is the source of the
problem.  If it is removed, the output is the same.

It used to work very well a year ago.

Version: 7.0.4.2
Build ID: 00(Build:2)
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-CA (en_CA.UTF-8); UI: en-US
Ubuntu package version: 1:7.0.4_rc2-0ubuntu0.20.04.2
Calc: threaded</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>