From d3c8e90a6bcfa9f70dd84aff0cae3c9865a92f52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Wed, 24 Sep 2014 21:13:56 +0200 Subject: [PATCH] #100 --- app/Vendor/tcpdf/xtcpdf.php | 1 + app/View/Pdf/application_ext.ctp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Vendor/tcpdf/xtcpdf.php b/app/Vendor/tcpdf/xtcpdf.php index c3e395a..d3e2aad 100644 --- a/app/Vendor/tcpdf/xtcpdf.php +++ b/app/Vendor/tcpdf/xtcpdf.php @@ -10,6 +10,7 @@ class XTCPDF extends TCPDF{ var $disableDesign = false; function __construct($disableDesign=false) { + parent::__construct(); $this->disableDesign = $disableDesign; } diff --git a/app/View/Pdf/application_ext.ctp b/app/View/Pdf/application_ext.ctp index fe63714..539bf76 100644 --- a/app/View/Pdf/application_ext.ctp +++ b/app/View/Pdf/application_ext.ctp @@ -9,7 +9,7 @@ $cvinhalt = $this->element('user_worker_cv_pdf',array('profil'=>array('User'=>$a $dev = 0; -$tcpdf = new XTCPDF(); +$tcpdf = new XTCPDF(true); $tcpdf->SetMargins(25,35,25,20); $tcpdf->SetAuthor("Miconware"); $tcpdf->SetAutoPageBreak( false );