Using DomPDF library |
Just read the documentation on https://github.com/dompdf/dompdf
Say you do not have composer auto-loading configured: - download the library and extract under applications/third_party - in your controller or model load it like this: PHP Code: <?php
I think you will find that DOMPDF sucks. Search the internet for wkhtmltopdf. Much better PDF generation.
(05-14-2018, 04:16 PM)skunkbad Wrote: I think you will find that DOMPDF sucks. Search the internet for wkhtmltopdf. Much better PDF generation. or https://github.com/GoogleChrome/puppeteer https://github.com/spatie/browsershot (05-14-2018, 09:10 PM)Paradinight Wrote:(05-14-2018, 04:16 PM)skunkbad Wrote: I think you will find that DOMPDF sucks. Search the internet for wkhtmltopdf. Much better PDF generation. Both require Node, which is fine if you have Node in production, but many basic shared hosting accounts don’t have it. Am I missing something?
(05-14-2018, 10:14 PM)skunkbad Wrote:(05-14-2018, 09:10 PM)Paradinight Wrote:(05-14-2018, 04:16 PM)skunkbad Wrote: I think you will find that DOMPDF sucks. Search the internet for wkhtmltopdf. Much better PDF generation. browsershot use puppeteer. yes you need nodejs ![]() (05-15-2018, 10:05 AM)Paradinight Wrote:(05-14-2018, 10:14 PM)skunkbad Wrote:(05-14-2018, 09:10 PM)Paradinight Wrote:(05-14-2018, 04:16 PM)skunkbad Wrote: I think you will find that DOMPDF sucks. Search the internet for wkhtmltopdf. Much better PDF generation. Well, I don't know if you've tried wkhtmltopdf, but it's almost perfect. Yes, you've still got some custom CSS needed for tables that spam multiple pages, but I think you'll find it's great compared to DOMPDF. With DOMPDF you can't even have floated divs for columns.
A quick search finds a CI wrapper for you.
https://github.com/kishorkurian123/Wkhtm...odeIgniter I havent used it.
(05-15-2018, 02:43 PM)skunkbad Wrote:(05-15-2018, 10:05 AM)Paradinight Wrote:(05-14-2018, 10:14 PM)skunkbad Wrote:(05-14-2018, 09:10 PM)Paradinight Wrote:(05-14-2018, 04:16 PM)skunkbad Wrote: I think you will find that DOMPDF sucks. Search the internet for wkhtmltopdf. Much better PDF generation. i know. ![]()
|
Welcome Guest, Not a member yet? Register Sign In |