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 );