# wkhtmltox
**Repository Path**: yugegit/wkhtmltox
## Basic Information
- **Project Name**: wkhtmltox
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 1
- **Created**: 2021-04-01
- **Last Updated**: 2024-10-12
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
wkhtmltox
========
[](https://travis-ci.org/krakjoe/wkhtmltox)
[](https://ci.appveyor.com/project/krakjoe/wkhtmltox/branch/master)
This extension wraps libwkhtmltox for PHP 7.
Documentation
============
Documentation can be found in the [PHP Manual](http://docs.php.net/wkhtmltox)
Hello World (PDF)
===============
```
use wkhtmltox\PDF\Converter as PDFConverter;
use wkhtmltox\PDF\Object as PDFObject;
$converter = new PDFConverter([
"out" => "test.pdf"
]);
$converter->add(new PDFObject(
file_get_contents("http://www.google.co.uk")));
$converter->convert();
```
Hello World (Image)
=================
```
use wkhtmltox\Image\Converter as ImageConverter;
$converter = new ImageConverter(null, [
"fmt" => "png",
"in" => "https://www.google.co.uk",
"out" => "test.png"
]);
$converter->convert();
```
Notes
=====
* Warnings from libwkhtmltox raise ZE warnings
* Errors from libwkhtmltox raise ZE exceptions (RuntimeException)
* Settings are accessible read only as properties or dimensions after construction
* It is not possible to change settings after object construction
* Validation of the possible values for settings is not good