Adjust footer position in PDF generation to ensure proper fit on the same page

This commit is contained in:
vista-man
2025-04-10 22:33:03 +02:00
parent 78ecedfd0f
commit 2fa54e3ce7

View File

@@ -106,7 +106,7 @@ foreach ($qrCodes as $index => $qrCode) {
unlink($qrCodePath); unlink($qrCodePath);
// Add a footer on the same page // 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->SetFillColor(40, 167, 69); // Green background
$pdf->SetTextColor(255, 255, 255); // White text $pdf->SetTextColor(255, 255, 255); // White text
$pdf->SetFont('Arial', 'I', 12); $pdf->SetFont('Arial', 'I', 12);