SetAuthor('EBENE SOLUTIONS INFORMATIQUES'); $userPassword = ''; $ownerPassword = null; $pdf->SetProtection(['print'], $userPassword, $ownerPassword); $pdf->AliasNbPages(); $pdf->AddPage(); $ht=6; $pdf->SetMargins(10, 10, 10) ; $pdf->SetFont('Arial','BI', 8); $pdf->SetFillColor(44,107,179); // bleu $pdf->Cell(0,2,"",1,1,'C',true); $pdf->Ln(10); $pdf->Image($_SESSION['lienLogo'],10,14,20); $pdf->Ln(10); $pdf->SetFont('Arial','B', 13); $pdf->SetFillColor(245,245,245); $pdf->SetTextColor(128,0,32); // Rouge bordeau $pdf->Cell(0,$ht,convertirc($groupefacturegarant['naturefacturationgarant']),1,1,'C',true); $pdf->SetFillColor(245,245,245); $pdf->Rect(10,39, 190, 30, 'DF'); // substr($string, 0, 5); $pdf->Ln(5); $pdf->SetTextColor(0,0,0); $pdf->Cell(15,$ht,convertirc(_('DOIT').' : '),0,0,'L',false); $pdf->SetFont('Arial','B', 13); $pdf->SetTextColor(138,43,226); $pdf->Cell(100,$ht,convertirc($groupefacturegarant['garant']),0,0,'L',true); $pdf->SetFont('Arial','B', 11); $pdf->SetTextColor(0,0,0); $pdf->Cell(22,$ht,convertirc(_('ADRESSE')),0,0,'L',true); $pdf->Cell(30,$ht,convertirc(": ".substr($groupefacturegarant['adressePostale'],0,22)),0,1,'L',true); $pdf->Cell(115); $pdf->Cell(22,$ht,convertirc(_('TEL')),0,0,'L',true); $pdf->Cell(40,$ht,convertirc(": ".substr($groupefacturegarant['telephoneGarant'],0,22)),0,1,'L',true); $pdf->Cell(115); $pdf->Cell(22,$ht,convertirc(_('CC')),0,0,'L',true); $pdf->Cell(30,$ht,convertirc(": ".$groupefacturegarant['numeroCompteContribuable']),0,1,'L',true); $pdf->Cell(115); $pdf->Cell(22,$ht,convertirc(_('E-MAIL')),0,0,'L',true); $pdf->Cell(30,$ht,convertirc(": ".$groupefacturegarant['emailGarant']),0,1,'L',true); // $pdf->Ln(5); $pdf->SetFont('Arial','B', 9); $pdf->Cell(22,$ht,convertirc(_('GARANT')),0,0,'L',false); $pdf->Cell(30,$ht,convertirc(": ".$groupefacturegarant['garant']),0,1,'L',false); $pdf->Cell(22,$ht,convertirc(_('REGIME')),0,0,'L',false); $pdf->Cell(40,$ht,convertirc(": ".$groupefacturegarant['libelletypegarant']),0,1,'L',false); $pdf->Cell(22,$ht,convertirc(_('PIECE')),0,0,'L',false); $pdf->Cell(30,$ht,convertirc(": ".$groupefacturegarant['numeroGroupeFactureImprime']),0,1,'L',false); $pdf->Cell(22,$ht,convertirc(_('EXERCICE')),0,0,'L',false); $pdf->Cell(30,$ht,convertirc(": ".$groupefacturegarant['codeExercice']),0,1,'L',false); $pdf->Cell(22,$ht,convertirc(_('GESTION')),0,0,'L',false); $pdf->Cell(30,$ht,convertirc(": ".$groupefacturegarant['centreGestion']),0,1,'L',false); $pdf->Cell(22,$ht,convertirc(_('PERIODE')),0,0,'L',false); $pdf->Cell(146,$ht,convertirc(": DU ".datelang($groupefacturegarant['dateDebut'],$_SESSION['lang'])." AU ".datelang($groupefacturegarant['dateFin'],$_SESSION['lang'])),0,0,'L',false); $pdf->SetFont('Arial','B', 13); $pdf->SetTextColor(255,0,0); //Rouge $pdf->SetFillColor(255,255,255); // blanc $pdf->Cell(22,$ht,convertirc(_('Duplicata')),0,0,'L',true); $x=105; $y = 75; $w=95; $h=20; $r=3.50; $pdf->RoundedRect($x, $y, $w, $h, $r, '1111'); $pdf->SetTextColor(128,128,0); // vert olive $pdf->SetXY(107,82); $pdf->Cell(35,$ht,convertirc(_('FACTURE N°').': '),0,0,'L',false); $pdf->SetTextColor(0,0,0); // vert noir $pdf->Cell(30,$ht,convertirc($groupefacturegarant['numeroGroupeFactureImprime']),0,1,'L',false); $pdf->Ln(10); $x1=10; $y1 = 110; $x2=200; $y2=110; $pdf->Line($x1, $y1, $x2, $y2); $pdf->Ln(13); $pdf->Cell(140); $pdf->SetFont('Arial','', 11); $pdf->SetTextColor(255,0,0); //Rouge $pdf->SetFillColor(255,255,255); // blanc $pdf->Cell(30,$ht,convertirc(_('Date de facture').': '),0,0,'L',true); $pdf->Cell(30,$ht,convertirc(datelang($groupefacturegarant['dateFacture'],$_SESSION['lang'])),0,1,'L',false); $pdf->SetFont('Arial','', 11); $pdf->SetTextColor(0,0,0); // vert noir $pdf->Cell(30,$ht,convertirc(_('Madame, Monsieur')),0,1,'L',false); $pdf->Ln(2); $pdf->Cell(0,$ht,convertirc($groupefacturegarant['texte']),0,1,'L',false);