olsgreen / wkhtmltopdf-amd64
Convert html to pdf using webkit (qtwebkit). Dynamically linked linux binary for amd64 systems.
Installs: 102 885
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 169
Open Issues: 1
This package is auto-updated.
Last update: 2024-10-29 05:59:27 UTC
README
This repository contains the static compiled 64-bit AMD binary 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
Installation
Hint: The version of the binary is equal to the git tag. To install the latest version, use: '0.12.6'.
Packagist
This package can be found on Packagist and installed with Composer.
Require the package with:
php composer.phar require olsgreen/wkhtmltopdf-amd64 "^0.12.6"
The binary will then be located at:
vendor/olsgreen/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64
Also a symlink will be created in your configured bin/ folder, for example:
vendor/bin/wkhtmltopdf-amd64
Usage
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);