web-chefs/puppeteer-to-pdf

Convert a URL or HTML to a PDF using headless Chrome

v0.1 2018-01-31 09:34 UTC

This package is auto-updated.

Last update: 2024-06-07 19:44:48 UTC


README

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.