79604332

Date: 2025-05-03 03:17:04
Score: 1
Natty:
Report link

Simply add another line to reset the colour.

$pdf->SetFont('helvetica', 'B', 6.5);
$pdf->SetTextColor(131,131,132); // Setting the colour
$pdf->SetXY(2, 17.5);
$pdf->Cell($pageWidth - 4, 7.5, 'EMPLOYEE ID CARD', 0, 1, 'C');
$pdf->SetTextColor(0,0,0); //Resetting the color after the cell has been printed
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Pasindu