sojebsikder / html2pdf
Convert html to pdf
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/sojebsikder/html2pdf
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();