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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
| $PDF=new phpToPDF();
$PDF->AddPage();
//Logo
$PDF->SetFont('Arial','B',15);
$PDF->Text(10,20,"INIDEV");
$PDF->SetFont('Arial','B',12);
$PDF->Text(10,29,"Slogan");
$PDF->SetFont('Arial','',10);
$PDF->SetXY(10,35);
$PDF->MultiCell(0, 5, "50 Avenue Jean Jaures\n94400 Vitry-Sur-Seine\nTelephone", 0, "", 0);
$PDF->SetFont('Arial','B',10);
$PDF->Text(10,67,utf8_decode("Facturé à :"));
$PDF->SetFont('Arial','',10);
$PDF->SetXY(10,70);
$PDF->MultiCell(0, 5, "Nom\nPrenom\nAdresse mail", 0, "", 0);
$PDF->SetFont('Arial','B',10);
$PDF->SetXY(140,32);
$PDF->MultiCell(0, 5, utf8_decode("DATE :\nN°FACTURE :\nPOUR :"), 0, "", 0);
$PDF->SetFont('Arial','',10);
$PDF->SetXY(170,32);
$PDF->MultiCell(0, 5, "30 janvier 2012 \n10\n ...", 0, "", 0);
$proprietesTableau = array(
'TB_ALIGN' => '',
'L_MARGIN' => 15,
'BRD_COLOR' => array(0,0,0),
'BRD_SIZE' => '0.3',
);
// Définition des propriétés du header du tableau.
$proprieteHeader = array(
'T_COLOR' => array(0,0,0),
'T_SIZE' => 12,
'T_FONT' => 'Arial',
'T_ALIGN' => 'C',
'V_ALIGN' => 'T',
'T_TYPE' => 'B',
'LN_SIZE' => 7,
'BG_COLOR_COL0' => array(170, 240, 230),
'BG_COLOR' => array(170, 240, 230),
'BRD_COLOR' => array(0,92,177),
'BRD_SIZE' => 0.2,
'BRD_TYPE' => '1',
'BRD_TYPE_NEW_PAGE' => '',
);
// Contenu du header du tableau.
$contenuHeader = array(
150, 30,
"DESCRIPTION", "MONTANT",
);
// Définition des propriétés du reste du contenu du tableau.
$proprieteContenu = array(
'T_COLOR' => array(0,0,0),
'T_SIZE' => 10,
'T_FONT' => 'Arial',
'T_ALIGN_COL0' => 'L',
'T_ALIGN' => 'R',
'V_ALIGN' => 'M',
'T_TYPE' => '',
'LN_SIZE' => 6,
'BG_COLOR_COL0' => array(255, 255, 255),
'BG_COLOR' => array(255,255,255),
'BRD_COLOR' => array(0,0,0),
'BRD_SIZE' => 0.1,
'BRD_TYPE' => '1',
'BRD_TYPE_NEW_PAGE' => '',
);
// Contenu du tableau.
$contenuTableau = array(
"champ 1","champ 2",
"COLSPAN2","champ 4",
"champ 1","champ 2",
"COLSPAN2","champ 4",
"champ 1","champ 2",
"COLSPAN2","champ 4",
"champ 1","champ 2",
"COLSPAN2","champ 4",
"champ 1","champ 2",
"COLSPAN2","champ 4",
"champ 1","champ 2",
"COLSPAN2","champ 4",
"champ 1","champ 2",
"COLSPAN2","champ 4",
"champ 1","champ 2",
"COLSPAN2","champ 4",
);
$PDF->SetXY(10,90);
$PDF->drawTableau($PDF, $proprietesTableau, $proprieteHeader, $contenuHeader, $proprieteContenu, $contenuTableau);
$PDF->SetFont('Arial','',10);
$PDF->SetXY(10,200);
$PDF->MultiCell(0, 5, utf8_decode("Pour toute question concernant cette facture, veuillez contacter Nom, numéro de téléphone, adresse de messagerie\n"), 0, "", 0);
$PDF->SetFont('Arial','B',10);
$PDF->SetXY(10,270);
$PDF->MultiCell(0, 5, utf8_decode("MERCI DE VOTRE CONFIANCE !"), 0, "C", 0);
$PDF->Output(); |
Partager