DEV Community


Generate PDF with Graph in Laravel using Laravel Snappy

ellis22 profile image Ellis Updated on ・1 min read

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

Discussion (0)

Editor guide