I changed Cell() to Multicell() in a table to include break lines inside a cell.
I don't know why it is breking the line after each new data. I mean, the header and corresponding data should be all in one line:
Name | Last Name | Exemple of breaking line
but what's happening is:
Name
Last Name
Exemple of breaking line
php:
<?php
$pdf->Multicell(200, 20, 'Motorista',1);
$pdf->Multicell(60, 20, 'Direção',1);
$pdf->Multicell(60, 15, "Espera Pós \nJornada",1,'C');
$pdf->Multicell(60, 15, "Espera em \nJornada",1,'C');
$pdf->Multicell(60, 20, 'Noturnas',1);
$pdf->Multicell(70, 20, 'Extras 50%',1);
$pdf->Multicell(70, 20, 'Extras 100%',1);
$pdf->Multicell(60, 15, "Hrs Tempo \nParado",1,'C');
$pdf->SetFont('Arial', '', 9);
$pdf->Ln(10);
?>
I removed $pdf->Ln(10);
but this is just for adding margin from header to data.