title: mPDF in CodeIgniter page orientation won't do landscape
body: <p>I'm using mPDF in CodeIgniter.  </p>
  
  <p>here is my lib (pdf.php)</p>
  
  <pre><code>class pdf {
      function pdf()
      {
          $CI = &amp; get_instance();
          log_message('Debug', 'mPDF class is loaded.');
      }
  
      function load($param=NULL)
      {
          include_once APPPATH.'/third_party/mpdf/mpdf.php';
          if ($params == NULL)
          {
              $param = '"en-GB-x","A4","","",10,10,10,10,6,3,"L"';
          }
          return new mPDF($param);
      }
  }
  </code></pre>
  
  <p>this is my controller</p>
  
  <pre><code>$filename = 'qwerty';
  //...
  // As PDF creation takes a bit of memory, we're saving the created file in /downloads/reports/
  $pdfFilePath = FCPATH."reports\\"   . $filename . ".pdf";
  //$data['page_title'] = 'Hello world'; // pass data to the view
  for($i=0;$i&gt;=0;$i++)
  {
      if(file_exists($pdfFilePath) == TRUE)
      {
          $pdfFilePath = FCPATH."reports\\"   . $filename . $i . ".pdf";
      } else {
          break 1;
      }
  }
  ini_set('memory_limit','32M');
  $html = $this-&gt;load-&gt;view('certificate/certificate', $isi,TRUE); // render the view into HTML
  $this-&gt;load-&gt;library('pdf');
  $pdf = $this-&gt;pdf-&gt;load($param);
  \$pdf = $this-&gt;pdf-&gt;load();
  $pdf-&gt;SetFooter($_SERVER['HTTP_HOST'].'|{PAGENO}|'.date(DATE_RFC822));
  $pdf-&gt;WriteHTML($html);
  $pdf-&gt;Output($pdfFilePath, 'F'); // save to file because we can
  </code></pre>
  
  <p>even with that config (<code>$param</code>), the result still give me portrait file, thus, CSS inside is pretty messed up.  </p>
  
  <p>What should I do?</p>