<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:momonasmon@gmail.com" title="Maxim Monastirsky <momonasmon@gmail.com>"> <span class="fn">Maxim Monastirsky</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - ibreoffice headless convert-to generate empty html from pdf"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=134681">bug 134681</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>momonasmon@gmail.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - ibreoffice headless convert-to generate empty html from pdf"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=134681#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - ibreoffice headless convert-to generate empty html from pdf"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=134681">bug 134681</a>
              from <span class="vcard"><a class="email" href="mailto:momonasmon@gmail.com" title="Maxim Monastirsky <momonasmon@gmail.com>"> <span class="fn">Maxim Monastirsky</span></a>
</span></b>
        <pre>(In reply to b_b from <a href="show_bug.cgi?id=134681#c0">comment #0</a>)
<span class="quote">> With the test file attached to the first issue, this commend generate en
> empty output :

> soffice --headless --convert-to html:"XHTML Writer File:UTF8" install.pdf</span >
This command is wrong, and I'm actually surprised it doesn't throw an error.
PDF files are associated by default with Draw, but "XHTML Writer File" is an
export filter of Writer. Obviously you can't use a Writer filter when exporting
a file loaded using Draw...

The solution here is to explicitly set the Writer pdf import filter with
--infilter="writer_pdf_import".

Other generic formats (like html, rtf or plain text) can just add "--writer" to
the command line, without specifying the input filter name, but this doesn't
work for PDF. This can also be reproduced from the UI: Trying to open a pdf
file from inside Writer, will still open it Draw.

<span class="quote">> This command wirks well, but lacks utf8 support :

> soffice --headless --convert-to html install.pdf</span >
Try --convert-to html:"XHTML Draw File".</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>