Example #1
0
 function preDisplay()
 {
     parent::preDisplay();
     $this->print_header = false;
     $this->print_footer = false;
     $this->_initSmartyInstance();
 }
 function preDisplay()
 {
     global $app_list_strings, $locale, $timedate;
     parent::preDisplay();
     //Set landscape orientation
     $this->setPageFormat(PDF_PAGE_FORMAT, "L");
     $this->SetFont(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN);
     //Set PDF document properties
     if ($this->bean->name == "untitled") {
         $this->SetHeaderData(PDF_SMALL_HEADER_LOGO, PDF_SMALL_HEADER_LOGO_WIDTH, $app_list_strings['moduleList'][$this->bean->module], $timedate->getNow(true));
     } else {
         $this->SetHeaderData(PDF_SMALL_HEADER_LOGO, PDF_SMALL_HEADER_LOGO_WIDTH, $this->bean->name, $timedate->getNow(true));
     }
     $cols = count($this->bean->report_def['display_columns']);
 }
 public function Output()
 {
     // the "D" will ensure forced download instead of displayed in browser
     return parent::Output($this->fileName, "D");
 }