$this->Cell(50, 5, ' Rec. For REF: DEW-QA-R-12', 'TBR', 2, 'L'); $this->Cell(50, 5, ' Rev No : A', 'BR', 2, 'L'); $this->Cell(50, 5, ' Issue Date: 31-12-2015', 'BR', 2, 'L'); $this->Cell(50, 5, ' NC Report ID: ' . $nclid, 'B R', 0, 'L'); $this->ln(); } function Footer() { $this->SetY(-10); $this->SetFont('helvetica', '', 6); $this->Cell(0, 10, 'Page' . $this->getAliasNumPage() . '/' . $this->getAliasNbPages(), 0, 0, 'C'); } } $pdf = new PDF_SKN(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false); $pdf->setAutoPageBreak(1, 25); $pdf->SetTopMargin(25); $pdf->AddPage('P', 'A4'); $pdf->SetFont('helvetica', '', 10); $pdf->SetY(25); $nc->showNCLog($pdf); $pdfname = $nclid . '.pdf'; ob_start(); $pdf->Output($pdfname, 'D'); ob_end_flush(); } else { if (isset($_GET['nclid'])) { $nc->setValue('nonconformanceid', $_GET['nclid']); $nc->setValue('showall', '1'); $nc->showNCLog(); } }