Skip to content
PHP bindings for libwkhtmltox
C PHP
Find file
Latest commit 6d3ab88 @mreiferson Merge pull request #38 from ashkulz/update-website-url
update URLs for the new website for wkhtmltopdf
Failed to load latest commit information.
LICENSE adding LICENSE
README.md
config.m4 Make it possible to pass a custom base directory for libwkhtmltox.
phpwkhtmltox.c Added support for PHP 5.4.x
phpwkhtmltox.h thread safe global initialization vars
test_image.php write to tmp by default
test_pdf.php updated test to check for multiple conversions

README.md

PHP bindings for the fabulous libwkhtmltox

Special thanks to antialize for creating wkhtmltopdf

For parameters and settings (for users familiar with the command line utility) see:

http://wkhtmltopdf.org/libwkhtmltox/pagesettings.html

Installation

$ phpize
$ ./configure
$ make install

edit your php.ini and add:

extension=phpwkhtmltox.so

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)

OSX Notes:

Until this bug is fixed you need qt_menu.nib directory from the QT source tree in the same directory as your libwkhtmltox.* library files

Something went wrong with that request. Please try again.