devraeph / laravel-web-to-pdf
This Package interacts with the DevStorm UrlToPdf Api
Installs: 1 111
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- ext-json: *
This package is auto-updated.
Last update: 2024-10-29 06:06:11 UTC
README
DevRaeph / laravel-web-to-pdf
A simple package with which you can convert URL WebPages to PDF. You require a valid API-Token.
Installation
Package is available on Packagist, you can install it using Composer.
composer require devraeph/laravel-web-to-pdf
Publish Config
php artisan vendor:publish --provider="DevRaeph\WebToPdf\WebToPDFServiceProvider" --tag="config"
Documentation
Converting a URL to PDF:
use DevRaeph\WebToPdf\Facades\WebToPDF; $myPDF = WebToPDF::setUrl(/* URL */) ->setFileName(/* Custom FileName */)//OPTIONAL ->setDelay(/* Default 50 */)//OPTIONAL ->setFullPage(/* Default false */)//OPTIONAL ->generate(); return $myPDF->toFile(); //Stream Download return $myPDF->toUrl(); //Return Download URL