Beispiel #1
0
 function exporttopdf()
 {
     error_reporting(0);
     if (!class_exists("TCPDF", FALSE)) {
         $_qlas = dirname(dirname(__FILE__));
         require_once $_qlas . "/library/tcpdf/config/lang/eng.php";
         require_once $_qlas . "/library/tcpdf/tcpdf.php";
     }
     $_qla8 = $this->ExportSettings;
     $_qO9e = $_qla8->_ql9g();
     $_qOaq = $_qO9e["template"];
     $_qOas = new tcpdf(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, TRUE, $this->_qO5p, FALSE);
     $_qlat = $_qO9e["pdf"]["font"];
     $_qOas->setfont($_qlat["family"], $_qlat["style"], $_qlat["size"]);
     $_qOas->setautopagebreak(TRUE);
     $_qOas->addpage($_qO9e["pdf"]["pageOrientation"], $_qO9e["pdf"]["pageDimension"]);
     $_qla7 = -1;
     $_qOa7 = -1;
     if (isset($this->Pager) && !$_qla8->IgnorePaging) {
         $_qla7 = $this->Pager->PageIndex * $this->Pager->PageSize;
         $_qOa7 = $_qla7 + $this->Pager->PageSize < $this->Pager->_ql8s ? $this->Pager->PageSize : $this->Pager->_ql8s - $_qla7;
     }
     $_qlai = $this->_qOa6($_qla7, $_qOa7);
     $_qlar = $_qlai->_qO4r() . $_qlai->_ql56($_qla8->_ql9h(), $_qO9e["caseSensitive"]);
     $_qOar = replace("{KoolPivotTable}", $_qlar, $_qOaq);
     ob_end_clean();
     $_qOas->writehtml($_qOar, TRUE, FALSE, FALSE, FALSE, '');
     $_qOas->output($_qO9e["fileName"] . ".pdf", "D");
     exit;
 }