From 2fa54e3ce7842bea70124e95f462eff729a17010 Mon Sep 17 00:00:00 2001 From: vista-man <524715@vistacollege.nl> Date: Thu, 10 Apr 2025 22:33:03 +0200 Subject: [PATCH] Adjust footer position in PDF generation to ensure proper fit on the same page --- php/process_ticket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/process_ticket.php b/php/process_ticket.php index b12a910..ff4f132 100644 --- a/php/process_ticket.php +++ b/php/process_ticket.php @@ -106,7 +106,7 @@ foreach ($qrCodes as $index => $qrCode) { unlink($qrCodePath); // Add a footer on the same page - $pdf->SetY(-30); // Position the footer at the bottom of the page + $pdf->SetY(-50); // Adjust Y position to ensure the footer fits on the same page $pdf->SetFillColor(40, 167, 69); // Green background $pdf->SetTextColor(255, 255, 255); // White text $pdf->SetFont('Arial', 'I', 12);