Convert html to pdf using webkit (qtwebkit). Static linked linux binary for amd64 systems.
Installs: 15 221 247
Open Issues: 15
This package is not auto-updated.
Last update: 2023-05-27 08:22:11 UTC
This repository contains the static compiled binaries from the wkhtmltopdf project. More about the functionality of wkhtmltopdf and wkthmltoimage can be found there.
Binaries for Microsoft Windows, also installable with composer, can be found here: github.com/wemersonjanuario/wkhtmltopdf-windows
Binaries for CentOS 7, also installable with composer, can be found here: github.com/rvanlaak/wkhtmltopdf-amd64-centos7
Hint: The version of the binary is equal to the git tag. To install the latest version, use '0.12.4'.
This package can be found on Packagist and installed with Composer.
Require the package for i386 with:
php composer.phar require h4cc/wkhtmltopdf-i386 "0.12.4"
And for amd64 with:
php composer.phar require h4cc/wkhtmltopdf-amd64 "0.12.4"
The binary will then be located at:
Also a symlink will be created in your configured bin/ folder, for example:
You can use the path constant to easily locate the binary in the PHP codebase:
$path = \h4cc\WKHTMLToPDF\WKHTMLToPDF::PATH;
For realpath use following script
$realpath = realpath(\h4cc\WKHTMLToPDF\WKHTMLToPDF::PATH);