Search code examples
phpfpdf

Closing an FPDF table and returning to full line format


I have created a table using fpdf, and I'm populating it using the MultiCell call. But I'd like to close the table and add some full length text after it. I can't seem to figure out how to do this.


Solution

  • Set x to 0 by using SetX(0) and then use multicell with full width text. Ex:-

    $pdf->SetX(0)
    $pdf->MultiCell(200,10,'Testing',0,'L')