diff --git a/app/Vendor/tcpdf/xtcpdf.php b/app/Vendor/tcpdf/xtcpdf.php index 1f1f5a6..93c4000 100644 --- a/app/Vendor/tcpdf/xtcpdf.php +++ b/app/Vendor/tcpdf/xtcpdf.php @@ -18,7 +18,9 @@ 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); + $this->SetMargins(25,25,20,25); + $this->SetHeaderMargin(45); + $this->SetFooterMargin(40); } function Footer(){ diff --git a/app/View/Pdf/application.ctp b/app/View/Pdf/application.ctp index d10a24a..7b67598 100644 --- a/app/View/Pdf/application.ctp +++ b/app/View/Pdf/application.ctp @@ -15,7 +15,6 @@ $cvinhalt = $this->element('user_worker_cv',array('toPDF'=>true,'profil'=>array( $dev = 0; $tcpdf = new XTCPDF(); -$tcpdf->SetMargins(25,25,20,25); $tcpdf->SetAuthor("Miconware"); $tcpdf->SetAutoPageBreak( false ); diff --git a/app/View/Pdf/profil.ctp b/app/View/Pdf/profil.ctp index b325fbe..6df3411 100644 --- a/app/View/Pdf/profil.ctp +++ b/app/View/Pdf/profil.ctp @@ -15,7 +15,6 @@ $cvinhalt .= '