FPDF background color not changing

14,068

If you take a look at the documentation, you have to give a green and blue component value to have your color.

Otherwise you will have a gray level.

SetFillColor

Share:
14,068
noobie-php
Author by

noobie-php

PHP developer: Active supporter of Open Source.

Updated on June 04, 2022

Comments

  • noobie-php
    noobie-php about 2 years

    Hi i am using FPDF i have some problem regarding setting background color.

    currently i am using

     $this->_FpdfGenerator->SetFillColor('239', 0, 0);
    

    also i have tried this

     $this->_FpdfGenerator->SetFillColor(239, 0, 0);
    

    but background color is not changing.