1
|
<?php
|
2
|
|
3
|
require_once( "tfpdf.php" );
|
4
|
// Include the Advanced Multicell Class
|
5
|
require_once( "classes/pdfmulticell.php" );
|
6
|
|
7
|
// create new PDF document
|
8
|
$pdf = new tFPDF();
|
9
|
|
10
|
/**
|
11
|
* Create the Advanced Multicell Object and pass the PDF object as a parameter to the constructor
|
12
|
*/
|
13
|
$oMulticell = new PdfMulticell( $pdf );
|
14
|
|
15
|
$pdf->AddPage();
|
16
|
$pdf->AddFont( 'dejavusans', '', 'DejaVuSans.ttf', true );
|
17
|
$pdf->AddFont( 'dejavusans', '', 'DejaVuSans.ttf', true );
|
18
|
$pdf->AddFont( 'dejavusans', 'B', 'DejaVuSans-Bold.ttf', true );
|
19
|
$oMulticell->SetStyle("b",'dejavusans',"b",10, "0,0,0");
|
20
|
$array_docs = array();
|
21
|
|
22
|
$array_docs[] = 'La fiche de renseignement';
|
23
|
$array_docs[] = 'Les présentes conditions générales de formation';
|
24
|
$array_docs[] = 'Le dossier financier';
|
25
|
$array_docs[] = 'Le règlement intérieur';
|
26
|
$array_docs[] = 'La décharge photographique';
|
27
|
$array_docs[] = 'La caution solidaire (sauf si règlement des frais de scolarité comptant)';
|
28
|
|
29
|
$oMulticell->multiCell(90,5,"<b>Nom :</b> JEANSON");
|
30
|
$oMulticell->multiCell(90,5,'<b>Prenom :</b> Kevin');
|
31
|
|
32
|
foreach($array_docs as $nb => $lib) {
|
33
|
$oMulticell->multiCell(150,5,(($nb+1).'. '.$lib.'.'),0,'L',0);
|
34
|
}
|
35
|
$pdf->Output();
|