Parcourir la source

Add footer to Age Verification test PDF

Alan Lam il y a 8 ans
Parent
commit
c1b4bc350c
1 fichiers modifiés avec 19 ajouts et 1 suppressions
  1. 19 1
      template_processing/age_verification/test_pdf.php

+ 19 - 1
template_processing/age_verification/test_pdf.php

@@ -294,4 +294,22 @@ $pdf->SetFont("Arial", "", $small_font_size);
 $pdf->MultiCell(95, 4, $values["think_21_poster_notes"] ?? "N/A", 0, 1);
 $pdf->Line($pdf->GetX(), $pdf->GetY(), $pdf->GetX() + 92.5, $pdf->GetY());
 
-?>
+// Footer
+$pdf->SetLeftMargin(10);
+
+$pdf->SetY(265);
+
+$pdf->SetFillColor(0, 146, 69);
+$pdf->Rect($pdf->GetX(), $pdf->GetY(), 190, 1, "DF");
+
+$pdf->SetY($pdf->GetY() + 6);
+
+$pdf->SetFont("Arial", "B", $normal_font_size);
+$pdf->Cell(0, $cell_height, "Check Policy Limited");
+$pdf->SetY($pdf->GetY() + $cell_height);
+$pdf->SetFont("Arial", "", $normal_font_size);
+$pdf->Cell(0, $cell_height, "8 Market Street, Liskeard, Cornwall, PL14 3JJ");
+$pdf->SetY($pdf->GetY() + $cell_height);
+$pdf->Cell(0, $cell_height, "Company Number: 09506865");
+
+?>