barryvdh / laravel-dompdf

A DOMPDF Wrapper for Laravel
MIT License
6.75k stars 974 forks source link

Failed to open stream: No such file or directory #989

Open DevRPL opened 1 year ago

DevRPL commented 1 year ago

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

parallels999 commented 1 year ago

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

DevRPL commented 1 year ago

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: @.***>