// Position at 15 mm from bottom $this->SetY(-10); // Set font //$this->SetFont('helvetica', 'I', 8); // Page number $this->Cell(0, 10, 'Page ' . $this->getAliasNumPage() . '/' . $this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M'); } } // create new PDF document $pdf = new MYPDF_NABL('L', 'mm', 'A5', true, 'UTF-8', false); $pdf->sample_id = 102907; $sample_id = 102907; //$pdf->setPrintHeader(false); //$pdf->setPrintFooter(false); // set default monospaced font $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); //set margins $pdf->SetMargins(5, 55); //set auto page breaks $pdf->SetAutoPageBreak(TRUE, 5); //set image scale factor $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); //set some language-dependent strings $pdf->setLanguageArray($l); // --------------------------------------------------------- // set font $pdf->SetFont('times', '', 10); $acr_check_code = array('-1' => '', '-2' => '', '-3' => '', '0' => '', '1' => 'low absurd', '2' => 'high absurd', '3' => 'low critical', '4' => 'high critical', '5' => '', '6' => ''); // add a page $pdf->AddPage(); $wth = $pdf->getPageWidth() - 10;