Skip to content

Web to PDF package is for internal use only. Open API is coming soon.

Notifications You must be signed in to change notification settings

DevRaeph/laravel-web-to-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Social Card of laravel-web-to-pdf

DevRaeph / laravel-web-to-pdf

Total Downloads Latest Stable Version Issues

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

About

Web to PDF package is for internal use only. Open API is coming soon.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages