19 |
* |
* |
20 |
* $Id$ |
* $Id$ |
21 |
* $Source$ |
* $Source$ |
|
* |
|
22 |
*/ |
*/ |
23 |
|
|
24 |
/** |
/** |
42 |
*/ |
*/ |
43 |
function pdf_propale_rouge($db=0) |
function pdf_propale_rouge($db=0) |
44 |
{ |
{ |
45 |
$this->db = $db; |
$this->db = $db; |
46 |
$this->name = "rouge"; |
$this->name = "rouge"; |
47 |
$this->description = "Modèle de propale par défaut"; |
$this->description = "Modèle de propale par défaut"; |
48 |
$this->error = ""; |
|
49 |
|
// Dimension page pour format A4 |
50 |
|
$this->page_largeur = 210; |
51 |
|
$this->page_hauteur = 297; |
52 |
|
$this->format = array($this->page_largeur,$this->page_hauteur); |
53 |
|
|
54 |
|
$this->error = ""; |
55 |
} |
} |
56 |
|
|
57 |
|
|
103 |
if (file_exists($dir)) |
if (file_exists($dir)) |
104 |
{ |
{ |
105 |
|
|
106 |
$pdf=new FPDF('P','mm','A4'); |
$pdf=new FPDF('P','mm',$this->format); |
107 |
$pdf->Open(); |
$pdf->Open(); |
108 |
$pdf->AddPage(); |
$pdf->AddPage(); |
109 |
|
|