title: Saving html page in local storage using php
body: <p>I am using <strong>PDFTOHTML</strong> (a php library) to convert pdf files to html and it's working fine but it's showing converted file in a browser and not storing in local folder, i want to store converted html in local folder using php with the same name as pdf was i-e <strong>mydata.pdf</strong> to <strong>mydata.html</strong> 
  Code that is converting pdf to html is:-</p>
  
  <pre><code> &lt;?php
  // if you are using composer, just use this
  include 'vendor/autoload.php';
  
   $pdf = new \TonchikTm\PdfToHtml\Pdf('cv.pdf', [
       'pdftohtml_path' =&gt; 'C:/wamp64/www/new/poppler-0.51/bin/pdftohtml.exe',
      'pdfinfo_path' =&gt; 'C:/wamp64/www/new/poppler-0.51/bin/pdfinfo.exe'
  ]);
  
  // get content from all pages and loop for they
  foreach ($pdf-&gt;getHtml()-&gt;getAllPages() as $page) {
      echo $page . '&lt;br/&gt;';
  }
  ?&gt;
  </code></pre>