title: Generate PDF from HTML - Laravel Blade
body: <p>I currently created a invoice in HTML. That invoice has some Blade Syntax in it, to be more precise it's one <code>@foreach</code> and some calling to variables, like <code>{{$order-&gt;id}}</code> or similar. Also I included simple CSS. Now I want to convert this HTML File to a pdf (and send it per mail, etc.)...</p>
  
  <p>I know there are various threads already, but none of them seems to be about blade templates (I could (if this was the last chance for me) also change the blade things to pure php, but I don't know if this makes it better?). However none of them seems to be welcome for everybody, so with witch plugin/library could I do this? I need to do something like that (pseudoCode follows):</p>
  
  <p><code>var InvoicePDF = generatePDFFromUrl('/incoive/6');</code></p>
  
  <p>Of course, it will most propably be a bit harder, but thats what I need, so then I would have the pdf stored in a variable and can use it as attachment for a mail for example...</p>
  
  <p>To come back to the plugins,</p>
  
  <p>I know about:</p>
  
  <p><a href="http://wkhtmltopdf.org/" rel="nofollow noreferrer">http://wkhtmltopdf.org/</a>  --> seems like I have to download it and run it, not just include something in php?</p>
  
  <p><a href="http://www.princexml.com/" rel="nofollow noreferrer">http://www.princexml.com/</a>  --> I don't want to pay for the plugin</p>
  
  <p>and there are many more, but all have something bad as I saw right....</p>
  
  <p>So what's a plugin that could do all I want?</p>
  
  <p>PS:
  I know about <a href="https://stackoverflow.com/questions/391005/convert-html-css-to-pdf-with-php">that</a> thread, but none of them seems to work as I want....</p>