This is a simple laravel package based on this https://github.com/SojebSikder/extra-power
- It helps to convert html to pdf
composer require sojebsikder/html2pdf
Save pdf as file
$html = new Html2pdf();
$html->setUrl('http://google.com');
return $html->saveAs('sojeb.pdf');
Download pdf
$html = new Html2pdf();
$html->setUrl('http://google.com');
return $html->download();