title: PHP - mPDF set resolution
body: <p>Is it possible to set resolution of PDF file using mPDF class. I'm trying to save image which is mainly black but with some thin white lines, and I can't see those white lines in PDF so I assume I have to increase resolution.</p>
  
  <p>EDIT:</p>
  
  <p>This is my code. First I save my page as html:</p>
  
  <pre><code>&lt;?php 
      $fileID = uniqid();
      $_SESSION['fileID'] = $fileID;
      file_put_contents("$fileID.html", ob_get_contents());
      header("Location: createPDF.php"); 
  ?&gt;
  </code></pre>
  
  <p>then I convert this page (which is full of svg images) into pdf:</p>
  
  <pre><code>&lt;?php
  
      include 'MPDF57/mpdf.php';
      session_start();
  
      $fileID = $_SESSION['fileID'];
      $yourHtml = "$fileID.html";
      $mpdf=new mPDF('', '', 0, '', 0, 0, 0, 0, 0, 0);
      $mpdf-&gt;SetDisplayMode('fullpage');
      $mpdf-&gt;WriteHTML(file_get_contents('main.css'),1);
      $mpdf-&gt;WriteHTML(file_get_contents($yourHtml)); 
      $mpdf-&gt;Output();
      unlink($yourHtml);
      unset($_SESSION['fileID']);
      header("index.php");
      exit;
  
  ?&gt;
  </code></pre>
  
  <p>Now I need to know if there is any way to change resolution of pdf file.</p>