title: How to convert DOCX OR DOC to HTML With image using phpWord
body: <p>Hi I need to convert DOCX to HTML with image and style.</p>
  
  <p>Here is my code example</p>
  
  <pre><code>$source = "Sampledocx.docx";
  $fileheader = 'test';
  $phpWord = \PhpOffice\PhpWord\IOFactory::load($source);     
  $htmlWriter=\PhpOffice\PhpWord\IOFactory::createWriter($phpWord,'HTML');
  $htmlWriter-&gt;save(storage_path('app/public/html/'.$fileheader.'.html'));
  </code></pre>
  
  <p>I'm not getting any error it is converting into html but without image.</p>
  
  <p>What do I need to change in order to keep the image?</p>