1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <?php
require('includes/fpdf.php');
class PDF extends FPDF
{
//En-tête
function Header()
{
$this->SetFont('Arial','B',15);
$this->Cell(10);
$this->Cell(100,10,'Societe',0,0,'L');
$this->Ln(5);
$this->SetFont('Arial','B',15);
$this->Cell(10);
$this->Cell(100,10,'Adresse',0,0,'L');
$this->Ln(20);
}
//Pied de page
function Footer()
{
$this->SetY(-15);
$this->SetFont('Arial','I',8);
}
}
$pdf=new PDF();
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetFont('Times','',12);
$pdf->Output("Etat.pdf", D);
?> |
Partager