$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"); $pdf->SetStyle2("b","times","B",11,"0,0,0"); $pdf->SetStyle2("i","times","I",11,"0,0,0"); $pdf->SetStyle2("u","times","U",11,"0,0,0"); $pdf->SetStyle2("decal","times","",11,"0,0,120"); $pdf->SetStyle2("pb","times","B",11,"0,0,0"); $pdf->SetStyle2("t1","DejaVu","",11,"254,252,222"); $pdf->SetStyle2("t1","DejaVu","",11,"0,151,200"); $pdf->SetStyle2("t2","DejaVu","",11,"0,151,200"); $pdf->SetStyle2("t3","times","B",14,"203,0,48"); $pdf->SetStyle2("t4","DejaVu","BI",11,"0,151,200"); $pdf->SetStyle2("hh","times","B",11,"255,189,12"); $pdf->SetStyle2("ss","DejaVu","",7,"203,0,48"); $pdf->SetStyle2("font","helvetica","",10,"0,0,255"); $pdf->SetStyle2("style","helvetica","BI",10,"0,0,220");