Changeset 456 for trunk/app/views/helpers
- Timestamp:
- 05/05/08 19:14:49 (7 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/helpers/fpdf.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/helpers/fpdf.php
r455 r456 14 14 * @param string $format values: A3, A4, A5, Letter, Legal or a two element array with the width and height in unit given in $unit 15 15 */ 16 public function __construct($orientation='P',$unit='mm',$format=' A4')16 public function __construct($orientation='P',$unit='mm',$format='Letter') 17 17 { 18 18 $this->pdf = new myFPDF($orientation, $unit, $format); 19 //$this->pdf->FPDF($orientation, $unit, $format); // method20 $this->pdf->AddPage();21 19 $this->pdf->SetFont('Arial','B',14); 22 20 } … … 24 22 public function setData($data) 25 23 { 26 $this->pdf->Cell(40,10,$data); 24 $this->pdf->Cell(0,10,$data,1,1,'L'); 25 $this->pdf->Ln(10); 27 26 } 28 27 28 public function newPage() 29 { 30 $this->pdf->AddPage(); 31 } 29 32 /** 30 33 * Allows you to control how the pdf is returned to the user, most of the time in CakePHP you probably want the string
