if ($j == 17) { $data[0]['TEXT'] = $ttxt2; $data[0]['T_ALIGN'] = 'C'; $data[0]['V_ALIGN'] = 'M'; $data[0]['BG_COLOR'] = array(234, 255, 218); $data[0]['ROWSPAN'] = 5; $data[0]['COLSPAN'] = 4; } $fsize += 0.5; if ($fsize > 10) { $fsize = 5; } $rgb_b -= 10; $rgb_g -= 5; $rgb_b -= 20; if ($rgb_b < 150) { $rgb_b = 255; } if ($rgb_g < 150) { $rgb_g = 255; } if ($rgb_b < 150) { $rgb_b = 255; } $pdf->tbDrawData($data); } //output the table data to the pdf $pdf->tbOuputData(); //draw the Table Border $pdf->tbDrawBorder(); $pdf->Output();