PageMode = ''; } public function Header() { if ($this->getPage() <= 1) { return; } $margins = $this->getMargins(); $width = $this->getPageWidth() - $margins['left'] - $margins['right']; $this->SetY(9); $this->SetFont('dejavusans', '', 7.5); $this->SetTextColor(108, 117, 125); $this->Cell($width / 2, 4, $this->running_title, 0, 0, 'L'); $this->Cell($width / 2, 4, 'IT Documentation', 0, 1, 'R'); $this->SetDrawColor(222, 226, 230); $this->SetLineWidth(0.2); $this->Line($margins['left'], 14, $this->getPageWidth() - $margins['right'], 14); } public function Footer() { if ($this->getPage() <= 1) { return; } $margins = $this->getMargins(); $width = $this->getPageWidth() - $margins['left'] - $margins['right']; $this->SetY(-13); $this->SetFont('dejavusans', '', 7.5); $this->SetTextColor(108, 117, 125); $this->Cell($width * 0.7, 4, $this->running_footer, 0, 0, 'L'); $this->Cell($width * 0.3, 4, 'Page ' . $this->getAliasNumPage() . ' of ' . $this->getAliasNbPages(), 0, 0, 'R'); } public function Error($msg) { throw new Exception('TCPDF: ' . $msg); } }