Open Jamiewarb opened 1 year ago
Try to create manually that path and try again,
also try this https://github.com/barryvdh/laravel-dompdf/issues/915#issuecomment-1273556405
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any issues with PDF rendering itself that are not directly related to this package, should be reported on https://github.com/dompdf/dompdf instead. When having doubts, please try to reproduce the issue with just dompdf. If you believe this is an actual issue with the latest version of laravel-dompdf, please reply to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.
@Jamiewarb Have you found a solution for this problem Jamie? Facing the exact same problem and nothing has helped yet.
same problem
same problem
Hi there,
When attempting to use dompdf with Laravel Vapor and importing a google font via CSS import, I'm getting the following issue:
The font link I'm using is
It gets to dompdf's FontMetrics methods, and then tries to open this file using
fopen('/tmp/storage/fonts/work_sans_normal_d6eeffee426555fe4bcfe67ec779bf1d.ufm', w+)
, and fails with this error.I read the following PR within this repo, which mentions setting dompdf's font cache etc to /tmp: https://github.com/barryvdh/laravel-dompdf/issues/687
However, from the error message, it looks like this is already set to
/tmp
, as it's trying to open this file there.Has anyone else gotten dompdf to work with Laravel vapor and a custom font?