title: mpdf ignoring javascript
body: <p>I have a question here..</p>
  
  <p>I have used buffering to get the pdf files using mpdf..</p>
  
  <p>but I got a little confused here..</p>
  
  <p>I have some javascript on the page that I was buffering.. but the generated content from javascript is not getting converted into pdf.. </p>
  
  <p>let me get this straight..</p>
  
  <p>lets say I have this element</p>
  
  <pre><code>&lt;div id='text'&gt;&lt;/div&gt;
  </code></pre>
  
  <p>and on my page i have a javascript code to add text to that div..
  and the results is...</p>
  
  <p>[open page via browser]</p>
  
  <pre><code>&lt;div id='text'&gt;TEXT I ADDED USING JAVASCRIPT&lt;/div&gt;
  </code></pre>
  
  <p>but when i convert it to pdf...</p>
  
  <pre><code>&lt;div id='text'&gt;&lt;/div&gt; (I DIDNT GET THAT TEXT)
  </code></pre>
  
  <p>This is the script that is used..
  template.php</p>
  
  <pre><code>ob_start();
  
  // content of page (included inline javascript code)
  
  $yourfile = ob_get_content();
  $_SESSION[forms] = $yourfile;
  echo $yourfile;
  </code></pre>
  
  <p>convert.php</p>
  
  <pre><code>session_start();
  include("MPDF54/mpdf.php");
  
  $mpdf=new mPDF('c','A4','','' , 0 , 0 , 0 , 0 , 0 , 0); 
  
  $mpdf-&gt;SetDisplayMode('fullpage');
  
  $mpdf-&gt;list_indent_first_level = 0; // 1 or 0 - whether to indent the first level of a list
  
  $mpdf-&gt;WriteHTML($_SESSION[forms]);
  
  $mpdf-&gt;Output();
  </code></pre>
  
  <p>Anybody can help me with this???</p>