Download the PHP package andrew72ru/web-to-print without Composer
On this page you can find all versions of the php package andrew72ru/web-to-print. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download andrew72ru/web-to-print
More information about andrew72ru/web-to-print
Files in andrew72ru/web-to-print
Package web-to-print
Short Description The package for generating PDF pages from HTML with headless Chrome and Chrome-driver
License MIT
Informations about the package web-to-print
Web to Print
The package for generating PDF pages from HTML with headless Chrome and Chrome driver.
Requirements
This package requires PHP >= 8.0 with ctype
and iconv
extensions. You must also have installed Chrome (chromium) and cromedriver
executables in your working environment.
Usage
First, create an instance of the Chrome Driver runner:
After that, you can call the PrintToPdf
class:
As a result, you will have a 'google.pdf' file in your working directory.
Default options
The PrintToPdf
class has a set of default options to run the Chrome and the print command.
Chrome options
Print options
See references in Chrome manual.
Testing
Before tests, you must put the chromedriver
executable into the project root.
Run tests:
All versions of web-to-print with dependencies
ext-ctype Version *
ext-iconv Version *
php-webdriver/webdriver Version ^1.13
symfony/http-client Version ^5.4
symfony/mime Version ^5.4
symfony/process Version ^5.4
psr/log Version ^2.0