AddPage(); // set the sourcefile $pdf->setSourceFile('Certificat-CadeauV2_mod.pdf'); // import page 1 $tplIdx = $pdf->importPage(1); // use the imported page and place it at point 10,10 with a width of 100 mm $pdf->useTemplate($tplIdx, null, null, 0, 0, true); // mettre le # de certificat $pdf->SetFont('Arial', 'B', 12); $pdf->SetTextColor(255,255,255); $pdf->SetXY(5, 3.05); $pdf->Cell(50, 5.05, "# CERT-1001", 0, 2, 'L'); // mettre la valeur du certificat $pdf->SetFont('Arial', 'B', 20); $pdf->SetTextColor(0,0,0); $pdf->SetXY(9.14, 39.37); $pdf->Cell(92.72, 16.05, "Valeur de 100,00 $ CAD", 0, 2, 'C'); // mettre le # de confirmation $pdf->SetFont('Arial', 'B', 18); $pdf->SetTextColor(0,0,0); $pdf->SetXY(50, 90); $pdf->Write(0, "XXXX-XXXX-XXXX-XXXX"); $pdf->Output('newpdf.pdf', 'F'); ?> Ouvrir