DOMPDF Wrapper for Laravel 5, it is an html to pdf converter for laravel 5.
I tried to convert the larvel default auth authorization page to PDF, and the path is http://www.careertag.dev/auth/register . The code used for this purpose is given below. But I get a font. Could you help me solve this problem?
routes.php
Route::post('/screenshot', function(){ $pdf = App::make('dompdf.wrapper'); //$pdf->loadHTML('<h1>Test</h1>'); $view = View::make('auth.register')->render(); $pdf->loadHTML($view); $pdf->stream(); //return $pdf->stream('invoice'); return $pdf->download('profile.pdf'); });
Mistake
ErrorException in font_metrics.cls.php line 343: file_put_contents(C:\xampp\htdocs\careertag\storage\fonts/13350985545a9988387f8a573f409063.ttf): failed to open stream: No such file or directory
php laravel laravel-5 dompdf
sam sam
source share