foreach ($files as $name => $file) { $this->SetFont('', '', 10); $this->Row(array( $file->GetItem()->GetValue('name'), $file->GetValue('quant'), sprintf("%.2f", $file->GetValue('price')), sprintf("%.2f", $file->GetTaxBase()) ), $widths, 6); if ($note = $file->GetValue('note')) { $this->SetFont('', '', 8); $this->TextRow($note, 6); } }