Skip to content

A PHP class that makes convert HTML to a PDF easy using headless Chrome through Puppeteer a NodeJs package

License

Notifications You must be signed in to change notification settings

web-chefs/PuppeteerToPdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convert a webpage to pdf using headless Chrome

Latest Version Software License Total Downloads

The package can convert a webpage to a pdf. The conversion is done behind the scenes by Puppeteer which controls a headless version of Google Chrome.

Originally base on spatie/browsershot.

Install

composer require "web-chefs/puppeteer-to-pdf"

Why Fork

WebChefs current tries where possible to support PHP 5.6 and spatie/browsershot requires PHP 7.0 and above.

spatie/browsershot supports a lot of image screen shot functionality that adds a lot of extra PHP 7.0 dependencies.

So to meet our requirements of generating a PDF running on PHP 5.6 required that we strip out any PHP 7.0 specific functionality this meant removing screen shot image functionality.

License

The MIT License (MIT). Please see License File for more information.

About

A PHP class that makes convert HTML to a PDF easy using headless Chrome through Puppeteer a NodeJs package

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published