I currently created a invoice in HTML. That invoice has some Blade Syntax in it, to be more precise it's one @foreach
and some calling to variables, like {{$order->id}}
or similar. Also I included simple CSS. Now I want to convert this HTML File to a pdf (and send it per mail, etc.)...
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):
var InvoicePDF = generatePDFFromUrl('/incoive/6');
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...
To come back to the plugins,
I know about:
http://wkhtmltopdf.org/ --> seems like I have to download it and run it, not just include something in php?
http://www.princexml.com/ --> I don't want to pay for the plugin
and there are many more, but all have something bad as I saw right....
So what's a plugin that could do all I want?
PS: I know about that thread, but none of them seems to work as I want....