barryvdh / laravel-snappy

Laravel Snappy PDF
MIT License
2.64k stars 292 forks source link

barryvdh / laravel-snappy not working on production #516

Open Michlaguardia99 opened 1 year ago

Michlaguardia99 commented 1 year ago

Does anyone know how this will work on production? It works on localhost but not on production.

striderwhite commented 1 year ago

By default it tries to use the version of WKHTMLTOPDF bundled in the vendor code, but sometimes the versioning wont work. The solution is to install WKHTMLTOPDF on your server, the point the package to use the installed version on the server in the env.