title: PHP FPDF Document to PNG/JPEG
body: <p>I am using <code>FPDI</code> to create pdf document,add text and download it in the browser with this code:</p>
  
  <pre><code>    $pdf = new FPDI();
      $pdf-&gt;AddPage();
      $pagecount = $pdf-&gt;setSourceFile($filePath);
      $tppl = $pdf-&gt;importPage(1);
      $pdf-&gt;useTemplate($tppl, 0, 0, 222.25, 297.18);
      $pdf-&gt;SetFont('DejaVu','',10);
  
      $pdf-&gt;SetXY(106,42);
      $pdf-&gt;Write(0, date('d'));
  
      $pdf-&gt;SetXY(136,42);
      $pdf-&gt;Write(0, date('m'));
  
      $pdf-&gt;Output();
  </code></pre>
  
  <p>And i want to know if there is any way to convert the pdf i create to png/jpeg file and then send it to the user?</p>