How to print a cell inside a cell using fpdf

I am making some pdf document from php code using fpdf library. In this document, I created two cells like this

    $pdf->Cell(100,100,"Text inside first column",1,0,'L');
    $pdf->Cell(35,35,'Text inside second column ',1,0,'C');

the above code works well, out put have two cells, the first has a size of 100x100, and the second has 35x35, and the second cell was right on the first cell.

but i need to print this second sale inside the first cell is there any way in fpdf? can someone help me?

+3
source share
1 answer

I'm not sure what you want to achieve exactly, but maybe this AddOn can help you do this:

http://www.interpid.eu/fpdf-table

Another way would be to move the pointer, something like this:

$pdf->Cell(100,100,"Text inside first column",1,0,'L');
$pdf->SetX($pdf->GetX() - 35);
$pdf->Cell(35,35,'Text inside second column ',1,0,'C');
+1
source

All Articles