Generate PDF with Graph in Laravel using Laravel Snappy

ellis22

Ellis

Posted on June 12, 2020

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

💖 💪 🙅 🚩
ellis22
Ellis

Posted on June 12, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related