Edit _bulk_print_badges.php via Editor

This commit is contained in:
Flatlogic Bot 2026-01-12 08:49:55 +00:00
parent a1a7a31494
commit 0b3a1c1c19

View File

@ -54,9 +54,10 @@ class PDF extends tFPDF
function generateBadge($person) { function generateBadge($person) {
$this->AddPage(); $this->AddPage();
$this->Image('assets/pasted-20260112-081646-4e946aad.png', 0, 0, $this->GetPageWidth(), $this->GetPageHeight()); $this->Image('assets/pasted-20260112-081646-4e946aad.png', 0, 0, $this->GetPageWidth(), $this->GetPageHeight());
$this->SetY(3);
$this->SetFont('DejaVu', 'B', 12); $this->SetFont('DejaVu', 'B', 12);
$this->Cell(0, 10, $person['first_name'] . ' ' . $person['last_name'], 0, 1, 'C'); $this->Cell(0, 10, $person['first_name'] . ' ' . $person['last_name'], 0, 1, 'C');
$this->SetFont('DejaVu', '', 12); $this->SetFont('DejaVu', '', 8);
$this->Cell(0, 10, $person['company_name'] ?? 'N/A', 0, 1, 'C'); $this->Cell(0, 10, $person['company_name'] ?? 'N/A', 0, 1, 'C');
$this->SetFont('DejaVu', '', 8); $this->SetFont('DejaVu', '', 8);
$this->Cell(0, 10, $person['industry'] ?? 'N/A', 0, 1, 'C'); $this->Cell(0, 10, $person['industry'] ?? 'N/A', 0, 1, 'C');