} $cee.=$d_b[substr($cm_a,0,1)].' '.$des_cee; if (substr($row['codice'],0,1)=='1'){ $cee .= ' (in diminuzione)'; } $cee .=' '.$data[$cm_a]; } } if (empty($cee)) { $cee=$row['annota']; } else { $cee .="\n".$row['annota']; } $pdf->MultiCell(65,4,$cee,'LR','L',false); $ly=$pdf->GetY(); $pdf->Line(10,$ly,10,$y); $pdf->Line(25,$ly,25,$y); $pdf->SetFont('helvetica','',7); } } else { $pdf->Cell(135,1,'','T'); $pdf->AddPage('P',$config->getValue('page_format')); if (isset($note[1])){ $y=$pdf->GetY(); $pdf->Cell(135); $pdf->SetFont('helvetica','',7); $pdf->MultiCell(51,4,$note[1],1,'L',true); $max_y=$pdf->GetY(); unset($note); $pdf->SetY($y);