Boa tarde,
Estou tentando gerar um arquivo PDF, mas o mesmo está dando a mensagem "Falha ao carregar documento PDF".
Tenho uma variável com um texto e algumas tags html (tabelas).
Tenho o código:
$rel = new TPDF('P','mm','A4');
$rel->Cell(0, 0, $termo);
$rel->MultiCell(0, 0, $termo);
$rel->printRows();
$rel->show();
Onde $termo é a tal variável com o texto. Se dou um echo na variável ela aparece na tela normalmente...
Obrigado.
Autor: Everton Murilo Rodrigues Silva
22 comentários
$rel->AddPage();
$rel->Cell(0, 5, $termo,0,1);
$rel->MultiCell(0, 5, $termo);
$rel->show(); Abraço.