}
 $lineSelect = 0;
 $pdf->SetAltoLinea(6);
 $iline = 0;
 foreach ($rowLines as $rown) {
     //$pdf->SetAutoPageBreak(true, 30);
     //$pdf->SetTopMargin(40);
     $lineSelect = 0;
     $count = count($rown);
     if ($count == 1) {
         $lineSelect = 2;
     }
     $changeColor = 0;
     $pdf->SetFormatCell(array());
     foreach ($rown as $val) {
         $pdf->SetAligns('L');
         $pdf->SetDibujaFondoTexto(false);
         if ($lineSelect == 0) {
             $pdf->SetFontAlignGeneral(1);
             $pdf->SetDibujaFondo(true);
             $pdf->SetFont('Arial', 'I', 14);
             $pdf->SetAltoLinea(7);
             $pdf->SetX(5);
             $pdf->SetFillColor(192, 192, 192);
             $pdf->SetTextColor(0, 0, 0);
             $changeColor = 0;
             $iline = 0;
         }
         if ($lineSelect == 1) {
             $pdf->SetX(5);
             $pdf->SetFontAlignGeneral(2);