Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

PHP bindings for libwkhtmltox

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 LICENSE
Octocat-spinner-32 README
Octocat-spinner-32 config.m4
Octocat-spinner-32 phpwkhtmltox.c
Octocat-spinner-32 phpwkhtmltox.h
Octocat-spinner-32 test_image.php
Octocat-spinner-32 test_pdf.php
README
PHP bindings for the fabulous libwkhtmltox

Special thanks to antialize for creating wkhtmltopdf: http://github.com/antialize/wkhtmltopdf

For parameters and settings (for users familiar with the command line utility) see:
http://www.cs.au.dk/~jakobt/libwkhtmltox_0.10.0_doc/pagesettings.html


Tested on:
 * CentOS 5.5, PHP 5.3.3 (64-bit)
 * Mac OSX 10.6.4 Snow Leopard, PHP 5.2.12 (64-bit)


Pre-requisites on all platforms:
--------------------------------
 * you need libwkhtmltox.* somewhere in your LD path (/usr/local/lib)
 * you need the directory src/include/wkhtmltox from wkhtmltopdf somewhere on your include path (/usr/local/include)


Notes on compiling for Mac OSX 10.6.4 Snow Leopard (64-bit libwkhtmltox only):
-------------------------------------------------------------------------------------
 * until this bug is fixed (http://bugreports.qt.nokia.com/browse/QTBUG-5952) you need qt_menu.nib directory from the QT source tree in the same directory as your libwkhtmltox.* libs


Installation
------------
$ phpize
$ ./configure
$ make install

edit your php.ini and add:
    extension=phpwkhtmltox.so
Something went wrong with that request. Please try again.