/**
  * Open pdf linked to survey
  */
 public function pdfAction()
 {
     // Make sure nothing else is output
     $this->initRawOutput();
     // Output the PDF
     $this->loader->getPdf()->echoPdfBySurveyId($this->_getParam(\MUtil_Model::REQUEST_ID));
 }
 /**
  * Called after the check that all required registry values
  * have been set correctly has run.
  *
  * @return void
  */
 public function afterRegistry()
 {
     parent::afterRegistry();
     $this->_pdf = $this->loader->getPdf();
     $this->escort = \GemsEscort::getInstance();
     $this->html = new \MUtil_Html_Sequence();
     // Do not know why, but for some reason menu is not loaded automatically.
     $this->menu = $this->loader->getMenu();
 }