title: PHPExcel_Writer_Exception in DomPDF.php line 34: Unable to load PDF Rendering library
body: <p>error in exporting to pdf. i tried composer update and adding stuffs to app.php anf composer.json</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code> public function exportPDF($request, $orgid)
      {
          /*$pdf = App::make('snappy.pdf.wrapper');
          $pdf-&gt;loadHTML('&lt;h1&gt;Test&lt;/h1&gt;');
          return $pdf-&gt;inline();*/
         $data = User::get()-&gt;toArray();
         return Excel::create('itsolutionstuff_example', function($excel) use ($data) {
          $excel-&gt;sheet('mySheet', function($sheet) use ($data)
          {
              $sheet-&gt;fromArray($data);
          });
         })-&gt;download("pdf");
      }</code></pre>
  </div>
  </div>
  </p>