$date_fmt = $pdf->sheet_date->format($format); } $pdf->Cell(190, 7, $date_fmt, 0, 1, 'C'); } // Header $pdf->SetFont('', 'B'); $pdf->SetFillColor(255, 255, 255); $pdf->Cell(110, 7, _T("Name"), 1, 0, 'C', 1); $pdf->Cell(80, 7, _T("Signature"), 1, 1, 'C', 1); // Data $pdf->SetFont(''); $mcount = 0; foreach ($members as $m) { $mcount++; $pdf->Cell(10, 16, $mcount, 'LTB', 0, 'R'); if ($m->hasPicture() && $_wimages) { $p = $m->picture->getPath(); // Set logo size to max width 30 mm or max height 25 mm $ratio = $m->picture->getWidth() / $m->picture->getHeight(); if ($ratio < 1) { if ($m->picture->getHeight() > 14) { $hlogo = 14; } else { $hlogo = $m->picture->getHeight(); } $wlogo = round($hlogo * $ratio); } else { if ($m->picture->getWidth() > 14) { $wlogo = 14; } else { $wlogo = $m->picture->getWidth();