Adding cell padding to TCPDF

I need to make invoices with TCPDF. I have a logo on top of the pdf and the company name should be next to it.

Now I am doing this:

$pdf->Image(__DIR__.'/../../../assets/img/logo.png', 15, 10, 10, 0);
$pdf->Cell(110, 0, 'Company', 0, 0, 'L', 0, '', 3);

      

But "Company" is at the top of the logo right now. Is there a way to add padding to the left of this cell?

+3


source to share


1 answer


Try using:

$pdf->Image(__DIR__.'/../../../assets/img/logo.png', 15, 10, 10, 0, null, null,'T');

      



documentation

0


source







All Articles