title: Embed images when converting from HTML with libreoffice
body: <p>I'm using libreoffice in headless mode to convert HTML into various formats.  For this question, we'll use docx for simplicity sake.</p>
  
  <p>I use a command similar to this: </p>
  
  <pre><code>libreoffice --headless --convert-to docx:"MS Word 2007 XML" --writer document.html
  </code></pre>
  
  <p>This works great for the most part.</p>
  
  <p>The HTML includes a couple of absolute links to images.  </p>
  
  <pre><code>&lt;img src="http://myserver.com/image1.jpg" /&gt;
  </code></pre>
  
  <p>When the document is converted to document.docx, the images are still being linked to, not embedded into the document.  This causes problems when you're offline and in previews and such.</p>
  
  <p>Is there a way that I can tell libreoffice to download and embed the images directly into the document instead of just keeping them as linked images?</p>