I was working on a laravel project on windows using xampp but switched to ubuntu after, my pdf generation code suddenly broke without any changes. I installed laravel-snappy