From 41ed3dd60b2e1a0f1c3b83d5f9634bbf1a8715f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Wed, 30 Apr 2014 00:46:45 +0200 Subject: [PATCH] ... --- app/Vendor/tcpdf/xtcpdf.php | 3 --- app/View/Pdf/application.ctp | 3 +++ app/View/Pdf/profil.ctp | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/Vendor/tcpdf/xtcpdf.php b/app/Vendor/tcpdf/xtcpdf.php index 92054e7..59116d4 100644 --- a/app/Vendor/tcpdf/xtcpdf.php +++ b/app/Vendor/tcpdf/xtcpdf.php @@ -18,9 +18,6 @@ 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(25,25,20,25); - $this->SetHeaderMargin(65); - $this->SetFooterMargin(40); } function Footer(){ diff --git a/app/View/Pdf/application.ctp b/app/View/Pdf/application.ctp index 0ba4f7a..52b5d7c 100644 --- a/app/View/Pdf/application.ctp +++ b/app/View/Pdf/application.ctp @@ -15,6 +15,9 @@ $cvinhalt = $this->element('user_worker_cv',array('toPDF'=>true,'profil'=>array( $dev = 0; $tcpdf = new XTCPDF(); +$tcpdf->SetMargins(25,25,20,25); +$tcpdf->SetHeaderMargin(65); +$tcpdf->SetFooterMargin(40); $tcpdf->SetAuthor("Miconware"); $tcpdf->SetAutoPageBreak( false ); diff --git a/app/View/Pdf/profil.ctp b/app/View/Pdf/profil.ctp index a4f3ede..90cf302 100644 --- a/app/View/Pdf/profil.ctp +++ b/app/View/Pdf/profil.ctp @@ -15,6 +15,10 @@ $cvinhalt .= '