fwrite($f,$text); fclose($f); } } debug_lettre_pdf(strftime("%Y%m%d à %H:%M:%S")."\n", "w+"); define('PARAGRAPH_STRING', '~~~'); define('FPDF_FONTPATH','../../fpdf/font/'); require_once("../../fpdf/class.multicelltag.php"); // mode paysage, a4, etc. $pdf=new FPDF_MULTICELLTAG('P','mm','A4'); $pdf->SetMargins(10,10,10,10); $pdf->Open(); $pdf->SetAutoPageBreak(true); $i = '0'; while(!empty($id_eleve[$i])) { $pdf->AddPage(); $pdf->SetFont('DejaVu','',11); $pdf->SetTextColor(0,0,0); $pdf->SetFillColor(255,255,255); // gestion des styles $pdf->SetStyle2("p","times","",11,"0,0,0"); $pdf->SetStyle2("g","times","B",11,"0,0,0");