lMarginLogo = 20; $this->tMarginName = 20; $x = $this->pdf->GetAbsX(); $y = $this->pdf->GetY(); $this->printImage($participant['image_1']); $this->pdf->SetLineStyle(array('width' => 0.1, 'cap' => 'round', 'join' => 'round', 'dash' => '2,2', 'color' => array(0, 0, 200))); $this->pdf->SetFontSize(9); $this->pdf->MultiCell($this->pdf->width - $this->lMarginLogo, 0, $participant['token'][1]['value'], $this->border, "L", 0, 1, $x + $this->lMarginLogo, $y); $this->pdf->SetFontSize(20); $this->pdf->MultiCell($this->pdf->width, 10, $participant['token'][2]['value'], $this->border, "C", 0, 1, $x, $y + $this->tMarginName); $this->pdf->SetFontSize(15); $this->pdf->MultiCell($this->pdf->width, 0, $participant['token'][3]['value'], $this->border, "C", 0, 1, $x, $this->pdf->getY()); $this->pdf->SetFontSize(9); $this->pdf->SetXY($x, $y + $this->pdf->height - 5); $date = CRM_Utils_Date::customFormat($participant['token'][4]['value'], "%e %b"); $this->pdf->Cell($this->pdf->width, 0, $date, $this->border, 2, "R"); } }