Break line in a cell of the PHP FPDF class?

0

I would like to know how to insert a line break with FPDF of PHP . I am putting the following code:

$pdf->Cell(0,20, "Declaramos que ".$nome.$quebra_linha." participou da I SAEP - Semana Acadêmica \n de Engenharia de Produção....",0,0,'L');

but the continuation of the line continues on the first line and exits from PDF . Entering another Cell below the first, with the continuation of the text is also an option, but I can not do it.

    
asked by anonymous 04.10.2016 / 02:31

2 answers

0

For the command line MultiCell > :

  

MultiCell(float w, float h, string txt [, mixed border [, string align [, boolean fill]]])

$pdf->MultiCell(0, 20, $texto,0,'L', false);

See detailed settings on link .

Manual of FPDF

    
04.10.2016 / 02:36
0

To break the MultiCell command line:

MultiCell(float w, float h, string txt [, mixed border [, string align [, boolean fill]]])
$pdf->MultiCell(0, 20, $texto,0,'L', false);"
    
14.06.2017 / 15:32