title: how to convert with princeXML and PHP
body: <p>I followed the directions on the readme file but I didn't get any errors nor any output or anything written to the log file.
  so, what is the right way of converting and HTML file to PDF with prince, thank you in advance.</p>
  
  <pre><code>ini_set('display_errors', '1');
  error_reporting(-1);
  
  require 'prince.php';
  
  
  
  $exepath='/Users/agk/Desktop/prince/bin/prince';
  $prince= new Prince($exepath);
  
  if(!$prince) die("Prince instantiation failed");
  
  
  $prince-&gt;setHTML(TRUE);
  $prince-&gt;setLog('prince.log');
  
  
  $xmlPath='/Applications/MAMP/htdocs/test/newhtml.html';
  
  
  
  $msgs= array();
  $convert=$prince-&gt;convert_file($xmlPath, $msgs);
  
  
  if(!$convert)
  {
  echo 'nothing converted';
  var_dump($msgs);
  
   }
  </code></pre>