When generating my PDF with custom fonts and trying to stream like this:
$pdf = PDF::loadView( '/pdfs/invoice',$data); return $pdf->stream();
local environment everything works fine. I can generate the pdf also.
production environment I am getting the error which written on the title.
And I have saved my Font files within storage/fonts and I have added 'storage/fonts' to writable_dirs within deploy.php.
I cannot set permission for every release within vendor files AND also I do not understand why the Font Caching is processed there. It should be done within my storage/fonts, since in config/dompdf.php there.
Change vender permissions
sudo chown -R www-data:www-data website/vendor/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With