~rmwenyekheri/sarisiae/trunk

« back to all changes in this revision

Viewing changes to admissions/NominallRoll.php

  • Committer: NDIMBOJr
  • Date: 2015-08-13 10:09:13 UTC
  • Revision ID: rmwenyekheri@gmail.com-20150813100913-wa5o4k7vvarmzl4n
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
require_once('html2pdf.class.php');
 
3
        // r�cup�ration de l'html
 
4
        ob_start();
 
5
        include('res/NominallRoll.php');
 
6
        $content = ob_get_clean();
 
7
 
 
8
        // initialisation de HTML2PDF
 
9
        $html2pdf = new HTML2PDF('P','A4','en', array(0, 0, 0, 0));
 
10
        
 
11
        // affichage de la page en entier
 
12
        $html2pdf->pdf->SetDisplayMode('fullpage');
 
13
        
 
14
        // conversion
 
15
        $html2pdf->WriteHTML($content, isset($_GET['vuehtml']));
 
16
        
 
17
        // ajout de l'index (obligatoirement en fin de document)
 
18
        $html2pdf->setNewPage();
 
19
        $html2pdf->CreateIndex('Index', 25, 12);
 
20
        
 
21
        // envoie du PDF
 
22
        $html2pdf->Output('NominallRoll.pdf');