https://github.com/sojebsikder/laravel-html2pdf
This is a simple html2pdf converter package for laravel
https://github.com/sojebsikder/laravel-html2pdf
html2pdf laravel laravel-package pdf-converter
Last synced: about 1 month ago
JSON representation
This is a simple html2pdf converter package for laravel
- Host: GitHub
- URL: https://github.com/sojebsikder/laravel-html2pdf
- Owner: SojebSikder
- Created: 2022-11-10T05:43:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-10T06:32:30.000Z (over 3 years ago)
- Last Synced: 2025-02-27T00:35:10.449Z (over 1 year ago)
- Topics: html2pdf, laravel, laravel-package, pdf-converter
- Language: PHP
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# laravel-html2pdf
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
```php
$html = new Html2pdf();
$html->setUrl('http://google.com');
return $html->saveAs('sojeb.pdf');
```
Download pdf
```php
$html = new Html2pdf();
$html->setUrl('http://google.com');
return $html->download();
```