Try looking at the wkhtmltopdf binary! Really useful. I use it in production.
PhantomJS? This example worked like a charm for me.
should i create a new class for pdf or just call methods in controller?
I created https://github.com/barryvdh/laravel-dompdf and https://github.com/barryvdh/laravel-snappy First one uses DomPDF, second uses wkhtmltopdf, both with a similar interface and facades, so you can do something like this in your controller:
$pdf = PDF::loadView('pdf.invoice', $data); return $pdf->download('invoice.pdf');
Html file to pdf converter is an easy tool that aids easy and bulk html to pdf conversion. There are several tools available and make conversion an easy procedure. I have tried Expert PDF and converted my files very easily and free of cost.. You can check details here http://www.html-to-pdf.net/
Hello barryvdh I have used dompdf Laravel facade with succes to render documents of 3-4 pages with tables in it, it takes around 2 to 4 minutes to render them. Only one question, is laravel-snappy faster than DomPDF? Thank you for attention and for such a great package!
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us