2
Good afternoon guys,
I have a problem where my pdf does not load my html...
Controller:
function pdf()
{
$this->load->library('pdf');
$data = $this->input->post('input');
$file_name = 'Dortech.pdf';
$html = $data;
$pdf = new Pdf();
$pdf->load_html($html);
$pdf->render();
$pdf->stream($file_name, array("Attachment" => false));
}
however when I give an echo on my variable $data it appears the html I requested.
Hello Diego, how did you do? I need an example.
– smourao