Background Color inside a cell is not changing in fpdf

后端 未结 2 1165
太阳男子
太阳男子 2021-01-18 22:16

Im using fpdf to generate a pdf file for my reports and Im new to this. I want to change the fill color inside a cell but whenever I reloaded the page, nothing hapeens, It s

2条回答
  •  醉梦人生
    2021-01-18 22:55

    mpdf->SetFillColor('RED');
    

    Just set the seventh parameter equal to TRUE

    $mpdf->WriteCell(38, 10, 'HELLO', 1, 0, 'C', TRUE);
    

提交回复
热议问题