From 63217d06968498dab49b3d05269050f34b0a7fda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Wed, 30 Apr 2014 00:34:09 +0200 Subject: [PATCH] ... --- app/Vendor/tcpdf/xtcpdf.php | 1 + app/View/Pdf/application.ctp | 2 +- app/View/Pdf/profil.ctp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Vendor/tcpdf/xtcpdf.php b/app/Vendor/tcpdf/xtcpdf.php index 59116d4..1f1f5a6 100644 --- a/app/Vendor/tcpdf/xtcpdf.php +++ b/app/Vendor/tcpdf/xtcpdf.php @@ -18,6 +18,7 @@ class XTCPDF extends TCPDF{ $this->Image(WWW_ROOT.DS.'img'.DS.'pdf-logo-lang.png',0,15,64,15,'','','','',300,'R'); else $this->Image(WWW_ROOT.DS.'img'.DS.'pdf-logo.png',0,10,20,20,'','','','',300,'R'); + $this->SetMargins(10, 10, 10, true); } function Footer(){ diff --git a/app/View/Pdf/application.ctp b/app/View/Pdf/application.ctp index ee411c6..d10a24a 100644 --- a/app/View/Pdf/application.ctp +++ b/app/View/Pdf/application.ctp @@ -57,7 +57,7 @@ $tcpdf->SetAutoPageBreak( true, 20); $tcpdf->writeHTML('

'.$application['DreamjobJobApplication']['subject'].'


'.$application['DreamjobJobApplication']['text']); //Lebenslauf -$tcpdf->SetAutoPageBreak( true, 35); +$tcpdf->SetAutoPageBreak( true, 20); $tcpdf->title=__('dreamjob.cv'); $tcpdf->AddPage(); $tcpdf->SetY(35); diff --git a/app/View/Pdf/profil.ctp b/app/View/Pdf/profil.ctp index 11e2748..b325fbe 100644 --- a/app/View/Pdf/profil.ctp +++ b/app/View/Pdf/profil.ctp @@ -39,7 +39,7 @@ $tcpdf->Cell(0,0, $WORKER['DreamjobUser']['street'], 0,1,'R'); $tcpdf->Cell(0,0, $WORKER['DreamjobUser']['postcode'].' '.$WORKER['DreamjobListCity']['name'], 0,1,'R'); //Lebenslauf -$tcpdf->SetAutoPageBreak( true,50); +$tcpdf->SetAutoPageBreak( true,20); $tcpdf->title=__('dreamjob.cv'); $tcpdf->AddPage(); $tcpdf->SetY(35);