title: CodeIgniter+Bootstrap - Convert HTML to PDF
body: <p>Before you say it's a duplicate of another question, please read on.</p>
  
  <p><em>My development environment is :</em></p>
  
  <ul>
  <li>CodeIgniter</li>
  <li>Twitter Bootstrap</li>
  </ul>
  
  <p><em>What I need :</em></p>
  
  <ul>
  <li>To be able to convert a piece of HTML code (or a complete webpage for that matter), <strong>exactly</strong> as it appears as a PDF.</li>
  </ul>
  
  <p><em>Hints :</em></p>
  
  <ul>
  <li>I know about domPDF (a common solution, with <a href="https://github.com/EllisLab/CodeIgniter/wiki/PDF-generation-using-dompdf">a helper already available</a> for CodeIgniter users), and I've used it in the past; the thing is it does NOT support real conversion (if I have to convert all my bootstrap css to tables, then it's close to useless).</li>
  <li>I'm thinking of using some terminal utility (triggered via ajax?), like <a href="http://code.google.com/p/wkhtmltopdf/">wkHtmlToPdf</a></li>
  </ul>
  
  <hr>
  
  <p>What would <strong>you</strong> suggest?</p>