dreamjob/app/Vendor/tcpdf/xtcpdf.php

33 lines
1.0 KiB
PHP
Raw Normal View History

2014-04-22 20:50:23 +02:00
<?php
App::import('Vendor','tcpdf/tcpdf');
2014-04-22 22:17:01 +02:00
class XTCPDF extends TCPDF{
2014-04-22 20:50:23 +02:00
var $fontsize = 12 ;
var $font = 'freesans' ;
var $title = '' ;
var $mail = 'dasa@sdsa.de' ;
2014-04-23 15:14:14 +02:00
function Header(){
2014-04-22 20:50:23 +02:00
$this->SetY(25);
$this->SetTextColor(0,0, 0);
$this->SetFont($this->font,'B',$this->fontsize);
$this->Cell(0,0, $this->title, array('B'=>array('width' => 1,'color'=>array(157,18,22))),1,'L');
$this->SetY(25);
if($this->title=='')
2014-04-22 22:17:01 +02:00
$this->Image(WWW_ROOT.DS.'img'.DS.'pdf-logo-lang.png',0,10,85,20,'','','','',300,'R');
2014-04-22 20:50:23 +02:00
else
2014-04-22 22:17:01 +02:00
$this->Image(WWW_ROOT.DS.'img'.DS.'pdf-logo.png',0,10,20,20,'','','','',300,'R');
2014-04-22 20:50:23 +02:00
}
2014-04-23 15:14:14 +02:00
function Footer(){
2014-04-22 20:50:23 +02:00
$this->SetY(-20);
$this->SetTextColor(0, 0, 0);
$this->SetFont($this->font,'',$this->fontsize);
$this->Cell(0,8, $this->mail,array('T'=>array('width' => 1,'color'=>array(0,115,184))),1,'L');
$this->SetY(-20);
$this->Cell(0,8,'www.dream-job.eu','',1,'R');
}
}
?>