sojebsikder / html2pdf
Convert html to pdf
v1.0.0
2022-11-10 06:31 UTC
Requires
- guzzlehttp/guzzle: ^7.2
README
This is a simple laravel package based on this https://github.com/SojebSikder/extra-power
- It helps to convert html to pdf
Install
composer require sojebsikder/html2pdf
Example:
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();