Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 1.4 KB

README.md

File metadata and controls

27 lines (16 loc) · 1.4 KB

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.