Add image to PDF - PHP
<p>I have a PDF document with a text form field.</p>

<p>What i need is to replace this text form field for an image</p>

<p>Anybody knows how to get the position of a form element?</p>

<p>Or if it's possible to search items on a PDF, using FPDI or another library?</p>

<pre><code>$pdf = new FPDI();

$pdf-&gt;setSourceFile("new.pdf"); 

$pdf-&gt;addPage(); 

$tplIdx = $pdf-&gt;importPage(1);

$pdf-&gt;useTemplate($tplIdx, 0, 0, 0, 0, true);

$pdf-&gt;Image('image.png',150,250,25);

$pdf-&gt;Output();
</code></pre>