diff --git a/_bulk_print_badges.php b/_bulk_print_badges.php index 49c20ac..5beded7 100644 --- a/_bulk_print_badges.php +++ b/_bulk_print_badges.php @@ -53,7 +53,9 @@ class PDF extends tFPDF function generateBadge($person) { $this->AddPage(); - $this->Image('assets/pasted-20260112-081646-4e946aad.png', 0, 0, $this->GetPageWidth(), $this->GetPageHeight()); + if(file_exists('assets/pasted-20260112-081646-4e946aad.png')) { + $this->Image('assets/pasted-20260112-081646-4e946aad.png', 0, 0, $this->GetPageWidth(), $this->GetPageHeight()); + } $this->SetY(20); $this->SetFont('DejaVu', 'B', 12); $this->Cell(0, 6, $person['first_name'] . ' ' . $person['last_name'], 0, 1, 'C'); diff --git a/index.php b/index.php index 4f1dcf2..1795b07 100644 --- a/index.php +++ b/index.php @@ -576,8 +576,124 @@ $status_colors = [ + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - \ No newline at end of file + diff --git a/lib/tfpdf/font/unifont/dejavusans-bold.cw.dat b/lib/tfpdf/font/unifont/dejavusans-bold.cw.dat new file mode 100644 index 0000000..fe2b02d Binary files /dev/null and b/lib/tfpdf/font/unifont/dejavusans-bold.cw.dat differ diff --git a/lib/tfpdf/font/unifont/dejavusans-bold.cw127.php b/lib/tfpdf/font/unifont/dejavusans-bold.cw127.php new file mode 100644 index 0000000..747d496 --- /dev/null +++ b/lib/tfpdf/font/unifont/dejavusans-bold.cw127.php @@ -0,0 +1,163 @@ + + array ( + 0 => 348, + 1 => 456, + 2 => 521, + 3 => 838, + 4 => 696, + 5 => 1002, + 6 => 872, + 7 => 306, + ), + 40 => + array ( + 0 => 457, + 1 => 457, + 'interval' => true, + ), + 42 => + array ( + 0 => 523, + 1 => 838, + 2 => 380, + 3 => 415, + 4 => 380, + 5 => 365, + ), + 48 => + array ( + 0 => 696, + 1 => 696, + 'interval' => true, + 2 => 696, + 3 => 696, + 4 => 696, + 5 => 696, + 6 => 696, + 7 => 696, + 8 => 696, + 9 => 696, + ), + 58 => + array ( + 0 => 400, + 1 => 400, + 'interval' => true, + ), + 60 => + array ( + 0 => 838, + 1 => 838, + 'interval' => true, + 2 => 838, + ), + 63 => + array ( + 0 => 580, + 1 => 1000, + 2 => 774, + 3 => 762, + 4 => 734, + 5 => 830, + ), + 69 => + array ( + 0 => 683, + 1 => 683, + 'interval' => true, + ), + 71 => + array ( + 0 => 821, + 1 => 837, + ), + 73 => + array ( + 0 => 372, + 1 => 372, + 'interval' => true, + ), + 75 => + array ( + 0 => 775, + 1 => 637, + 2 => 995, + 3 => 837, + 4 => 850, + 5 => 733, + 6 => 850, + 7 => 770, + 8 => 720, + 9 => 682, + 10 => 812, + 11 => 774, + 12 => 1103, + 13 => 771, + 14 => 724, + 15 => 725, + 16 => 457, + 17 => 365, + 18 => 457, + 19 => 838, + ), + 95 => + array ( + 0 => 500, + 1 => 500, + 'interval' => true, + ), + 97 => + array ( + 0 => 675, + 1 => 716, + 2 => 593, + 3 => 716, + 4 => 678, + 5 => 435, + 6 => 716, + 7 => 712, + ), + 105 => + array ( + 0 => 343, + 1 => 343, + 'interval' => true, + ), + 107 => + array ( + 0 => 665, + 1 => 343, + 2 => 1042, + 3 => 712, + 4 => 687, + ), + 112 => + array ( + 0 => 716, + 1 => 716, + 'interval' => true, + ), + 114 => + array ( + 0 => 493, + 1 => 595, + 2 => 478, + 3 => 712, + 4 => 652, + 5 => 924, + 6 => 645, + 7 => 652, + 8 => 582, + 9 => 712, + 10 => 365, + 11 => 712, + 12 => 838, + ), +); +?> \ No newline at end of file diff --git a/lib/tfpdf/font/unifont/dejavusans-bold.mtx.php b/lib/tfpdf/font/unifont/dejavusans-bold.mtx.php new file mode 100644 index 0000000..48568a1 --- /dev/null +++ b/lib/tfpdf/font/unifont/dejavusans-bold.mtx.php @@ -0,0 +1,19 @@ + 928.0, + 'Descent' => -236.0, + 'CapHeight' => 928.0, + 'Flags' => 262148, + 'FontBBox' => '[-1069 -415 1975 1174]', + 'ItalicAngle' => 0.0, + 'StemV' => 165.0, + 'MissingWidth' => 600.0, +); +$up=-63; +$ut=44; +$ttffile='lib/tfpdf/font/unifont/DejaVuSans-Bold.ttf'; +$originalsize=705684; +$fontkey='dejavuB'; +?> \ No newline at end of file diff --git a/lib/tfpdf/font/unifont/dejavusans.cw.dat b/lib/tfpdf/font/unifont/dejavusans.cw.dat new file mode 100644 index 0000000..7b0ae87 Binary files /dev/null and b/lib/tfpdf/font/unifont/dejavusans.cw.dat differ diff --git a/lib/tfpdf/font/unifont/dejavusans.cw127.php b/lib/tfpdf/font/unifont/dejavusans.cw127.php new file mode 100644 index 0000000..237fea1 --- /dev/null +++ b/lib/tfpdf/font/unifont/dejavusans.cw127.php @@ -0,0 +1,163 @@ + + array ( + 0 => 318, + 1 => 401, + 2 => 460, + 3 => 838, + 4 => 636, + 5 => 950, + 6 => 780, + 7 => 275, + ), + 40 => + array ( + 0 => 390, + 1 => 390, + 'interval' => true, + ), + 42 => + array ( + 0 => 500, + 1 => 838, + 2 => 318, + 3 => 361, + 4 => 318, + 5 => 337, + ), + 48 => + array ( + 0 => 636, + 1 => 636, + 'interval' => true, + 2 => 636, + 3 => 636, + 4 => 636, + 5 => 636, + 6 => 636, + 7 => 636, + 8 => 636, + 9 => 636, + ), + 58 => + array ( + 0 => 337, + 1 => 337, + 'interval' => true, + ), + 60 => + array ( + 0 => 838, + 1 => 838, + 'interval' => true, + 2 => 838, + ), + 63 => + array ( + 0 => 531, + 1 => 1000, + 2 => 684, + 3 => 686, + 4 => 698, + 5 => 770, + 6 => 632, + 7 => 575, + 8 => 775, + 9 => 752, + ), + 73 => + array ( + 0 => 295, + 1 => 295, + 'interval' => true, + ), + 75 => + array ( + 0 => 656, + 1 => 557, + 2 => 863, + 3 => 748, + 4 => 787, + 5 => 603, + 6 => 787, + 7 => 695, + 8 => 635, + 9 => 611, + 10 => 732, + 11 => 684, + 12 => 989, + 13 => 685, + 14 => 611, + 15 => 685, + 16 => 390, + 17 => 337, + 18 => 390, + 19 => 838, + ), + 95 => + array ( + 0 => 500, + 1 => 500, + 'interval' => true, + ), + 97 => + array ( + 0 => 613, + 1 => 635, + 2 => 550, + 3 => 635, + 4 => 615, + 5 => 352, + 6 => 635, + 7 => 634, + ), + 105 => + array ( + 0 => 278, + 1 => 278, + 'interval' => true, + ), + 107 => + array ( + 0 => 579, + 1 => 278, + 2 => 974, + 3 => 634, + 4 => 612, + ), + 112 => + array ( + 0 => 635, + 1 => 635, + 'interval' => true, + ), + 114 => + array ( + 0 => 411, + 1 => 521, + 2 => 392, + 3 => 634, + 4 => 592, + 5 => 818, + ), + 120 => + array ( + 0 => 592, + 1 => 592, + 'interval' => true, + ), + 122 => + array ( + 0 => 525, + 1 => 636, + 2 => 337, + 3 => 636, + 4 => 838, + ), +); +?> \ No newline at end of file diff --git a/lib/tfpdf/font/unifont/dejavusans.mtx.php b/lib/tfpdf/font/unifont/dejavusans.mtx.php new file mode 100644 index 0000000..6bc75cd --- /dev/null +++ b/lib/tfpdf/font/unifont/dejavusans.mtx.php @@ -0,0 +1,19 @@ + 928.0, + 'Descent' => -236.0, + 'CapHeight' => 928.0, + 'Flags' => 4, + 'FontBBox' => '[-1021 -463 1793 1232]', + 'ItalicAngle' => 0.0, + 'StemV' => 87.0, + 'MissingWidth' => 600.0, +); +$up=-63; +$ut=44; +$ttffile='lib/tfpdf/font/unifont/DejaVuSans.ttf'; +$originalsize=757076; +$fontkey='dejavu'; +?> \ No newline at end of file