DEV Community

Ellis
Ellis

Posted on • Edited on

Generate PDF with Graph in Laravel using Laravel Snappy

Laravel Snappy is a library that uses Wkhtmltopdf to convert HTML to PDF. generate pdf with graph in laravel using snappy package.

It Runs JAVASCRIPT that makes it better than any other package. But it isn’t very awesome, there are two main problems with it.

1- It can only run old javascript (ES5).
2- It doesn’t accept animation at all.

And this is the hardest problem (Most of new Charts Libraries using animation ). So we are going to use Google Charts V1.1.

It generates SVG Chars with no animation and at the same time, it’s vectorized.

Generate PDF with Graph

Top comments (0)