title: Laravel edit existing pdf
body: <p>I don't know how to edit an existing pdf file with Laravel.</p>
  
  <p>I have found many plugin for create PDF but no one help me in my problem.</p>
  
  <p>Can anyone know how to do it?</p>
  
  <p>This is what I have tried so far</p>
  
  <pre class="lang-php prettyprint-override"><code>$pdf-&gt;AddPage();
  $source = $pdf-&gt;setSourceFile(asset("assets/images/coupon/source/coupon.pdf"));
  $tplIdx = $pdf-&gt;importPage(1);
  $pdf-&gt;useTemplate($tplIdx, 10, 10, 90);
  $pdf-&gt;SetXY(40, 0); // Doesn't work
  $pdf-&gt;Write(0, 'This is just a simple text'); // Doesn't work
  $pdf-&gt;Output(); // Doesn't work
  </code></pre>