I'm going to use shared hosting to host my Laravel project, maximum library use whtmltopdf module in unix system That's why I'm not sure to use this (https://github.com/barryvdh/laravel-dompdf)
How to to convert HTML to PDF in laravel?
I'm going to use shared hosting to host my Laravel project, maximum library use whtmltopdf module in unix system That's why I'm not sure to use this (https://github.com/barryvdh/laravel-dompdf)
How to to convert HTML to PDF in laravel?
You would use it like:
$pdf = App::make('dompdf.wrapper');
$pdf->loadHTML('<h1>Your HTML Here</h1>');
return $pdf->stream();
Which would return a PDF to the browser or you could use the Facade that comes bundled and use:
return PDF::loadFile(public_path().'/your_html.html')->stream('download.pdf');
The README outlines what you need to add to your project to get started.