fpdf17 import more than one page
<p>Pleaaaase help me to to fix the code. I would like to import the first and the secound page:</p>

<pre><code>$pdf = new FPDI('P','mm','A4');

$pdf-&gt;SetTitle("test");

$pageCount = $pdf-&gt;setSourceFile($_SERVER['DOCUMENT_ROOT']."source.pdf");
$tplIdx = $pdf-&gt;importPage(1); 


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

$pdf-&gt;SetFont('Arial','',9);
$pdf-&gt;SetMargins(1,0,1,0);
$pdf-&gt;SetAutoPageBreak(margin,1)

shareeditundeleteflag
</code></pre>