mPDF horizontal - PHP

Asked

Viewed 408 times

0

I need to generate a report PDF, with the following specifications:

$this->load->helper('mpdf');
$html = $this->load->view('relatorio/interessados_relatorio_impressao', $data=NULL, true);
pdf_create($html, 'interessados_relatorio_' . date('dmyhis'), true);

So far, so good, generate and download. However, it generates the PDF vertically... And as it is report, I would like it to be horizontal.

Can anyone help me with this question?

  • You have no idea what the statement of mpdf with this little bit of code. Try to go to the source of the helper, There in the folder, find the file mpdf.php and look for something around new mPDF('utf-8','A4', [...]);, if found, add a L, being like this 'A4-L'.

  • 1

    I did this, it worked, you can post your answer?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.