title: Using wkhtmltopdf on Windows
body: <p>I am trying to set up the nifty HTML to image plugin called wkhtmltopdf and I am having a really difficult time. </p>
  
  <p><strong>What I did so far:</strong></p>
  
  <ol>
  <li><p>Downloaded wkhtmltopdf zip package and upacked the file in my websites root folder</p></li>
  <li><p>As a test I included the following code in my index.php file, which I would expect to save the contents of bbc.com website as a .jpg image in my websites root folder:
  ..</p>
  
  <p>shell_exec('./wkhtmltopdf --quality 50 <a href="http://www.bbc.com" rel="noreferrer">http://www.bbc.com</a> bbc.jpg');</p></li>
  </ol>
  
  <p>Nothing seems to happen. PHP is <strong>not</strong> running in safe mode, so that isn't the problem. shell_exec is executing, I was able to create a .txt document using it.</p>
  
  <p>I have been researching this for days, I am offering <strong>100 bounty</strong> to anyone that can come up with with a clear, simplified step-by-step working guide on how to set up wkhtmltopdf on Widows to run using PHP.</p>
  
  <p>More specifically I am looking for <strong>simplified</strong> walk-through on how to:</p>
  
  <ul>
  <li><p>Set up wkhtmltopdf to run on Windows using php (include details on common problems and how to overcome them).</p></li>
  <li><p>On click of a button or link: print the 'current' web page to pdf, including all filled out <strong>input</strong> values (include sample code for this part). Webpages with events that change the content of the page, should print out the <strong>current</strong> version of the page, <strong>not</strong> the initial state of the page.</p></li>
  <li><p>Create a download link of the .pdf created, onClick of the same function mentioned above that creates and prints to pdf (include sample code for this part).</p></li>
  </ul>