title: codeigniter convert excel file to pdf
body: <p>I want to ask how can I convert excel to pdf?</p>
  
  <p>I want to put 5 excel files and after I click upload in convert to 1 pdf?</p>
  
  <p>for now I use in this code:</p>
  
  <pre><code>    /**
   * Example: DOMPDF 
   *
   * Documentation: 
   * http://code.google.com/p/dompdf/wiki/Usage
   *
   */
  public function index() {   
      // Load all views as normal
      $this-&gt;load-&gt;view('test');
      // Get output html
      $html = $this-&gt;output-&gt;get_output();
  
      // Load library
      $this-&gt;load-&gt;library('dompdf_gen');
  
      // Convert to PDF
      $this-&gt;dompdf-&gt;load_html($html);
      $this-&gt;dompdf-&gt;render();
      $this-&gt;dompdf-&gt;stream("welcome.pdf");
  
  }
  </code></pre>
  
  <p>the library:</p>
  
  <p>class Dompdf_gen {</p>
  
  <pre><code>public function __construct() {
  
      require_once APPPATH.'third_party/dompdf/dompdf_config.inc.php';
  
      $pdf = new DOMPDF();
  
      $CI =&amp; get_instance();
      $CI-&gt;dompdf = $pdf;
  
  }
  </code></pre>
  
  <p>}</p>