// 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; $linkk = start_nchsls(); $sql_examination_data = 'select * from examination where sample_id=\'' . $sample_id . '\' order by name_of_examination'; $result_examination_data = mysql_query($sql_examination_data, $linkk); $counter = 55; $pdf->SetFont('helvetica', '', 8); while ($examination_array = mysql_fetch_assoc($result_examination_data)) { //if($examination_array['id']<1000) //{