|
1 | | -wkhtmltopdf-amd64 |
2 | | -================= |
| 1 | +wkhtmltopdf |
| 2 | +================ |
3 | 3 |
|
4 | | - wkhtmltopdf - Convert html to pdf using webkit (qtwebkit). amd64 Binary. |
| 4 | +This Repo contains the Binarys from the [wkhtmltopdf project](https://code.google.com/p/wkhtmltopdf/). |
| 5 | +More about the functionality of wkhtmltopdf and wkthmltoimage can be found there. |
| 6 | + |
| 7 | +## Installation |
| 8 | + |
| 9 | +_Hint_: |
| 10 | +The version of the binary is equal to the git tag. |
| 11 | +To install the latest version, use '0.11.0-RC1'. |
| 12 | + |
| 13 | +### Packagist |
| 14 | + |
| 15 | +This package can be found on [Packagist](http://packagist.org) and installed with [Composer](http://getcomposer.com/). |
| 16 | + |
| 17 | +Require the package for _i386_ with: |
| 18 | + |
| 19 | + php composer.phar require h4cc/wkhtmltopdf-i386 |
| 20 | + |
| 21 | +And for _amd64_ with: |
| 22 | + |
| 23 | + php composer.phar require h4cc/wkhtmltopdf-amd64 |
| 24 | + |
| 25 | +The binary will then be located at: |
| 26 | + |
| 27 | + vendor/h4cc/wkhtmltopdf-i386/bin/wkhtmltopdf-i386 |
| 28 | + |
| 29 | +Also a symlink will be created in your configured bin/ folder, for example: |
| 30 | + |
| 31 | + vendor/bin/wkhtmltopdf-i386 |
| 32 | + |
| 33 | +------------------------------------ |
| 34 | + |
| 35 | +An alternative way to install this package is using the direct download from google code. |
| 36 | +You have to add _own package sources_ to the composer.json to provide a new installable package. |
| 37 | + |
| 38 | + { |
| 39 | + "repositories": [ |
| 40 | + { |
| 41 | + "type": "package", |
| 42 | + "package": { |
| 43 | + "name": "google/wkhtmltopdf-amd64", |
| 44 | + "version": "0.11.0-RC1", |
| 45 | + "dist": { |
| 46 | + "url": "http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.11.0_rc1-static-amd64.tar.bz2", |
| 47 | + "type": "tar" |
| 48 | + } |
| 49 | + } |
| 50 | + }, |
| 51 | + { |
| 52 | + "type": "package", |
| 53 | + "package": { |
| 54 | + "name": "google/wkhtmltopdf-i386", |
| 55 | + "version": "0.11.0-RC1", |
| 56 | + "dist": { |
| 57 | + "url": "http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.11.0_rc1-static-i386.tar.bz2", |
| 58 | + "type": "tar" |
| 59 | + } |
| 60 | + } |
| 61 | + } |
| 62 | + ] |
| 63 | + } |
| 64 | + |
| 65 | +After that, you can require the defined packages like this in your composer.json for _i386_: |
| 66 | + |
| 67 | + { |
| 68 | + "require": { |
| 69 | + "google/wkhtmltopdf-i386": "0.11.0-RC1" |
| 70 | + } |
| 71 | + } |
| 72 | + |
| 73 | +and for _amd64_: |
| 74 | + |
| 75 | + { |
| 76 | + "require": { |
| 77 | + "google/wkhtmltopdf-amd64": "0.11.0-RC1" |
| 78 | + } |
| 79 | + } |
0 commit comments