I've installed the spatie/laravel-pdf package in my application, and it works fine locally. However, when I deploy it to a live server (Linux) and install all the required dependencies, attempting to generate a PDF results in an attached file of zero bytes.
What happened?
I've installed the spatie/laravel-pdf package in my application, and it works fine locally. However, when I deploy it to a live server (Linux) and install all the required dependencies, attempting to generate a PDF results in an attached file of zero bytes.
test.pdf
How to reproduce the bug
use function Spatie\LaravelPdf\Support\pdf;
return pdf() ->html('
Hello world!!
') ->name('test.pdf') ->download('test.pdf');Package Version
1.1
PHP Version
8.2
Laravel Version
10.3.2
Which operating systems does with happen with?
Linux
Notes
No response