diff --git a/app/Controller/PdfController.php b/app/Controller/PdfController.php index c06f17b..072f067 100644 --- a/app/Controller/PdfController.php +++ b/app/Controller/PdfController.php @@ -10,6 +10,7 @@ class PdfController extends AppController { $this->MiconwareSession->init($this); $this->MiconwareSession->initWeb($this); + $this->response->type('application/pdf'); $WORKER = $this->MiconwareSession->getWorker(); $COMPANY = $self = $this->MiconwareSession->getCompany(); $application = null; @@ -38,6 +39,7 @@ class PdfController extends AppController { $this->MiconwareSession->init($this); $this->MiconwareSession->initWeb($this); + $this->response->type('application/pdf'); $WORKER = $this->MiconwareSession->getWorker(); if(!is_array($WORKER) or count($WORKER) <= 0){