title: How to add custom footer with styles in TCPDF
body: <p>I am using <strong>TCPDF</strong> , I am trying to add custom footer with different styles like right side <code>Customer Name:</code> color should be blue and left side <code>Approved By:</code> color should be green, and bottom of the page displaying page numbers. </p>
  
  <p>I have tried this in pdf page</p>
  
  <pre><code>$html_content = "&lt;table&gt;&lt;tr&gt;&lt;td&gt;Customer Name:&lt;/td&gt;&lt;td style='color:blue;'&gt;Suneel&lt;/td&gt;&lt;td&gt;Approved By:&lt;/td&gt;&lt;td style='color:green;'&gt;Srinu&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/hr&gt;"    
  $tcpdf-&gt;xfootertext($html_content);
  </code></pre>
  
  <p>It's Working, but it's not accept the styles</p>
  
  <p>In TCPDF class</p>
  
  <pre><code>function Footer()
  {
      $year = date('Y');
      $footertext = sprintf($this-&gt;xfootertext, $year);
      $this-&gt;writeHTMLCell(0, 0, '', '', $footertext, 0, 0, false,true, "L", true);
      $this-&gt;SetY(8);
      // Set font
      $this-&gt;SetFont('helvetica', 'I', 8);
      // Page number
      $this-&gt;Cell(0, 27, 'Page '.$this-&gt;getAliasNumPage().'/'.$this-&gt;getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M');
  }
  </code></pre>