title: How can I get rid of the /* I see at the end of every PDF I generate?
body: <p>I'm using mPDF to generate PDFs of webpage content. I've noticed that at the end of every PDF I generate I am seeing a <code>/*</code>.  Pretty Weird.  I am using mPDF with Wordpress. I suspect that maybe there is something with my template possibly that is causing the issue.  </p>
  
  <p>I tried the example first pdf code and that did not produce the <code>/*</code>.</p>
  
  <p>My settings for mPDF look like this:</p>
  
  <pre><code>$url = urldecode($_REQUEST['url']);
  $title = urldecode($_REQUEST['title']);
  
  // For $_POST i.e. forms with fields
  if (count($_POST) &gt; 0) {
  
      $ch = curl_init($url);
      curl_setopt($ch, CURLOPT_HEADER, 0);
      curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1 );
  
      foreach($_POST as $name =&gt; $post) {
        $formvars = array($name =&gt; $post . " \n");
      }
  
      curl_setopt($ch, CURLOPT_POSTFIELDS, $formvars);
      $html = curl_exec($ch);
      curl_close($ch);
  
  } elseif (ini_get('allow_url_fopen')) {
      $html = file_get_contents($url);
  
  } else {
      $ch = curl_init($url);
      curl_setopt($ch, CURLOPT_HEADER, 0);
      curl_setopt ( $ch , CURLOPT_RETURNTRANSFER , 1 );
      $html = curl_exec($ch);
      curl_close($ch);
  }
  
  
  /* for debug */
  var_dump($html); die;
  
  $mpdf = new \Mpdf\Mpdf([
      'format' =&gt; 'Letter',
      'margin_left' =&gt; 0,
      'margin_right' =&gt; 0,
      'margin_top' =&gt; 6,
      'margin_bottom' =&gt; 6,
      'margin_header' =&gt; 5,
      'margin_footer' =&gt; 5
  ]);
  
  $mpdf-&gt;useSubstitutions = false; // optional - just as an example
  $mpdf-&gt;simpleTables = true;
  // $mpdf-&gt;SetHeader($url . "\n\n");  // optional - just as an example
  $mpdf-&gt;CSSselectMedia='mpdf'; // assuming you used this in the document header
  $mpdf-&gt;SetAuthor("author");
  $mpdf-&gt;SetDisplayMode('fullpage');
  $mpdf-&gt;setBasePath($url);
  $mpdf-&gt;WriteHTML($html);
  $mpdf-&gt;Output($title . ".pdf", 'D');
  </code></pre>
  
  <p>I am submitting a page URL from a form to my createPDF.php page and using curl to get the content of the page.  Is there something special I need to do here to clean the content?</p>