title: On what factors does html2pdf generation depends?
body: <p>I have tried to generate a pdf using html2pdf.
  In my localhost, everything works fine. It loads for 3 seconds.
  But in my server it takes more than 30 seconds!</p>
  
  <p>I have checked the memory_limit, it says 128M, changed it to 256M (php code), it has the same performance.
  Changing libraries isn't an option though, I tried mpdf first but it doesn't support block levels in table. 
  Here's my code:</p>
  
  <pre><code>include_once APPPATH . 'third_party/html2pdf/html2pdf.class.php';
  try
  {
      $html2pdf = new HTML2PDF($param["orientation"], $param["paper_size"], 'fr');
      $html2pdf-&gt;setDefaultFont($param["font"]);
      $html2pdf-&gt;writeHTML($param["html"], isset($_GET['vuehtml']));
      $filename = $param["filename"];
      if ($param["action"] == "download") {
          $html2pdf-&gt;Output($filename, 'D');
      } else {
          $html2pdf-&gt;Output($filename);
      }
  } catch (HTML2PDF_exception $e) {
      echo $e;
      exit;
  }
  </code></pre>
  
  <p>Do i need so setup something in my web server?</p>