Code :
- if($submit)
- {
- $date=date('U');
- $filename="$date.pdf";
- $pdf=new FPDF('P','mm',array(85,55));
- $pdf->SetMargins(5, 5, 5) ;
- $pdf->AddPage();
- $pdf->SetAutoPageBreak(0, 5);
- $pdf->SetFont('Arial','B',12);
- $pdf->Ln(20);
- $pdf->Cell(0,0,$prenom." ".$nom,0,0,'C');
- $pdf->SetFont('Arial','',6);
- $pdf->Ln(15);
- $pdf->Cell(75,3,"Tel. : ".$telephone,0,0,'R');
- $pdf->Ln(3);
- $pdf->Cell(1,3,$adresse,0,0,'L');
- $pdf->Cell(75,3,"Fax : ".$fax,0,0,'R');
- $pdf->Ln(3);
- $pdf->Cell(1,3,$cp." ".$ville,0,0,'L');
- $pdf->Cell(75,3,"Email : ".$email,0,0,'R');
- $pdf->Output("$filename" );
- }
|