cv im pdf <- rand und umbrüche

This commit is contained in:
Martin Müller 2014-04-23 15:14:14 +02:00
parent 28525f0b44
commit c4e8a696a6
3 changed files with 6 additions and 15 deletions

View File

@ -108,12 +108,6 @@ class RegistrationController extends AppController {
$result = $this->DreamjobWorker->registration($data);
if($result){
$result = $this->registrationMail($data,$key);
if($result){
$this->log("Registratrion Mail:"+$data['User']['mail']);
}
}
if ($result) {
$regResult = true;
$this->MiconwareSession->setFlash('dreamjob.registration.done','flash',array('alert'=>'success'));

View File

@ -8,8 +8,7 @@ class XTCPDF extends TCPDF{
var $title = '' ;
var $mail = 'dasa@sdsa.de' ;
function Header()
{
function Header(){
$this->SetY(25);
$this->SetTextColor(0,0, 0);
$this->SetFont($this->font,'B',$this->fontsize);
@ -21,8 +20,7 @@ class XTCPDF extends TCPDF{
$this->Image(WWW_ROOT.DS.'img'.DS.'pdf-logo.png',0,10,20,20,'','','','',300,'R');
}
function Footer()
{
function Footer(){
$this->SetY(-20);
$this->SetTextColor(0, 0, 0);
$this->SetFont($this->font,'',$this->fontsize);

View File

@ -2,14 +2,12 @@
App::import('Vendor','tcpdf/xtcpdf');
$cvinhalt = $this->element('user_worker_cv',array('toPDF'=>true,'profil'=>array('User'=>$application['WorkerUser']
,'AppUser'=>$application['AppUserWorker'],'DreamjobWorker'=>$application['DreamjobWorker'],'DreamjobListGraducation'=>$application['WorkerGraducation'],'DreamjobListCity'=>$application['DreamjobWorkerListCity'])));
//die($cvinhalt);
//$cvinhalt = "<i>asd</i>";
ob_end_clean();
$dev = 0;
$tcpdf = new XTCPDF();
$tcpdf->SetMargins(25,25,20,25);
$tcpdf->SetAuthor("Miconware");
$tcpdf->SetAutoPageBreak( false );
@ -52,10 +50,11 @@ $tcpdf->SetY(85);
$tcpdf->SetFont($tcpdf->font,'B',$tcpdf->fontsize);
$tcpdf->Cell(0,0, __('dreamjob.application.subject'), 0,1,'L');
$tcpdf->SetFont($tcpdf->font);
$tcpdf->writeHTMLCell(0,175,10,95, $application['DreamjobJobApplication']['text'], $dev,0,false,true,'L');
$tcpdf->SetAutoPageBreak( true,50);
$tcpdf->writeHTML($application['DreamjobJobApplication']['text']);
//$tcpdf->writeHTMLCell(0,175,10,95, $application['DreamjobJobApplication']['text'], $dev,0,false,true,'L');
//Lebenslauf
$tcpdf->SetAutoPageBreak( true );
$tcpdf->title=__('dreamjob.cv');
$tcpdf->AddPage();
$tcpdf->SetY(35);