title: Content is not compatible as a PDF, using Snappy wkhtmltopdf
body: <p>I'm working on a project. I'm trying to generate a report with my charts and dynamic tables. I tried to used <em>wkhtmltopdf</em> but I wasn't able to deal with the complexity. However, I read most of the answered to other question on <em>wkhtmltopdf</em> so I decided to try snappy which was a sugeestion. below is my code.</p>
  
  <pre><code>  require_once 'C:/wamp/www/Mamca/lib/snappy/src/autoload.php';
  
    use Knp\Snappy\Pdf;
  
    $snappy = new Pdf('/usr/local/bin/wkhtmltopdf');
    header('Content-Type: application/pdf');
    header('Content-Disposition: attachment; filename="file.pdf"');
    echo $snappy-&gt;getOutput('http://www.github.com');
  </code></pre>
  
  <p>but the pdf generated does not open, error from the pdf reader states "cannot open file"</p>