DEV Community

Ellis
Ellis

Posted on • Edited on

3 2

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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay