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 33 34 35 36 37
| <?php
function cptpostPDF()
{
require('fpdf.php');
class PDF extends FPDF
{
function Header()
{
//Titre
$this->SetFont('Arial','',18);
$this->Cell(0,6,'plop',0,1,'C');
$this->Ln(10);
//Imprime l'en-tête du tableau si nécessaire
parent::Header();
}
}
$marginLeft = "20";
$marginLeft2 = "60";
$marginLeft3 = "120";
$marginRight = "10";
//création_d_un_nouveau_document_PDF
$pdf=new PDF();
$pdf->AliasNbPages();
$pdf->SetAuthor("Moi");
$pdf->SetCreator("Moi");
$pdf->SetSubject("Comptes");
$pdf->SetTitle("Comptes");
$pdf->AddPage();
$pdf->SetFillColor(220);
//TITRE_PAGE
$pdf->SetFont('Arial','B',14);
$pdf->SetXY(100,25);
$pdf->MultiCell(100,6,"COMPTES",0,'R');
//affichage_du_PDF
$pdf->Output();
}
?> |
Partager