laravel-dompdf icon indicating copy to clipboard operation
laravel-dompdf copied to clipboard

Failed to open stream: No such file or directory

Open DevRPL opened this issue 2 years ago • 2 comments

Hello, I am using Laravel 9, I get the following error when trying this command, the dompdf I am using is version ^2.0:

use Barryvdh\DomPDF\Facade\Pdf;

return PDF::loadView('master.vehicle.print', compact('vehicles')) ->setPaper('A4', 'potrait') ->stream();

fopen(C:\laragon\www\***\storage\fonts/glyphicons_halflings_normal_4ced20531a4f462a8c5c535d4debd2eb.ufm): Failed to open stream: No such file or directory

DevRPL avatar Jul 25 '23 03:07 DevRPL

https://github.com/barryvdh/laravel-dompdf/blob/424a223ce80e7afc8bfb6e84449679efe272fbb5/.github/ISSUE_TEMPLATE/bug_report.md?plain=1#L10-L12

This is just a Dompdf wrapper! I understand that this package is just a Laravel wrapper for https://github.com/dompdf/dompdf Any issues with PDF rendering, CSS that is not applied correctly, aligning/fonts/characters etc that are not directly related to this package, should be reported there. When having doubts, please try to reproduce the issue with just dompdf. If it's also present there, do not open an issue here please.

Maybe folder permissions, or path not exists

parallels999 avatar Jul 25 '23 15:07 parallels999

I thought the problem was in the package, it turns out the error is from the css file that I applied, thank you for your advice.

Pada tanggal Sel, 25 Jul 2023 pukul 22.17 parallels999 < @.***> menulis:

https://github.com/barryvdh/laravel-dompdf/blob/424a223ce80e7afc8bfb6e84449679efe272fbb5/.github/ISSUE_TEMPLATE/bug_report.md?plain=1#L10-L12

This is just a Dompdf wrapper! I understand that this package is just a Laravel wrapper for https://github.com/dompdf/dompdf Any issues with PDF rendering, CSS that is not applied correctly, aligning/fonts/characters etc that are not directly related to this package, should be reported there. When having doubts, please try to reproduce the issue with just dompdf. If it's also present there, do not open an issue here please.

— Reply to this email directly, view it on GitHub https://github.com/barryvdh/laravel-dompdf/issues/989#issuecomment-1650041820, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI2PVFFUTX67DATDFULTUVLXR7PR3ANCNFSM6AAAAAA2WOHDIE . You are receiving this because you authored the thread.Message ID: @.***>

DevRPL avatar Jul 26 '23 02:07 DevRPL