This has been useful to me:
Why there is no PDF Laravel lesson, Jeffrey?
Why there is no PDF laravel lesson so far?
It's quite important in my opinion.
You should do something about it, Jeffrey.
But don't try to use dompdf, the utf-8 support is very bad.
Thanks Craig, but I am using dompdf in Laravel myself and it kinda works, but the problem is that I am looking for some "best" practice type of video when using PDF generation in Laravel and it's surprising that Jeffrey haven't touched that so far.
I have paid quite a lot of money so far for Laracasts, so, this question is some kind of request on how to do PDF stuff in Laravel and best practices with tips etc and I hope that some kind of basic invoicing project will be available in the near future.
@Jeffrey if you decide to do such tutorial/series (I hope that you do ;) think about users who don't use only the English alphabet, then attachments/multiple attachments, file-size of the final pdf output file, how to use Laravel viewsfor pdf templates etc.
Thanks in advance.
P.S. Thank you guys for the links to fpdf, mpdf, snappy etc. but I am aware of all that. I am looking for Jeffrey's tips and best practices video
I'm not sure there is such a thing as a 'best practice' when it comes to PDF generation Laravel, or PHP. It's a case of find a library that works the best for you.
PDF is a dirty, dark art. DOMPDF doesn't handle HTML too well all the time, it's tricky to know when to break a page etc. FPDF is better in the latter regard, but it has its own issues.
What we really need is for The League to come up with a library to handle PDF!
This is what I use, it supports UTF-8 and CSS files/inline. It's generation of PDFs is perfectly the same as the HTML version of it.
Maybe I should change the channel for this topic from site improvements to requests. Any idea how to do that? Or if there is some moderator with such capabilities, could I ask him to do so? Thank you in advance.
Only Jeffrey can. Also "Requests" is for new video requests (originally).
Please or to participate in this conversation.