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 thehelper
, There in the folder, find the filempdf.php
and look for something aroundnew mPDF('utf-8','A4', [...]);
, if found, add aL
, being like this'A4-L'
.– William Novak
I did this, it worked, you can post your answer?
– Sr. André Baill