Warning
This repository has been deprecated and archived.
Please use Puppeteer and the pdf method instead.
This is a buildpack for bundling a compatible wkhtmltopdf binary with your environment.
- Buildpack:
0.3 - wkhtmltopdf:
0.12.6-1by default
Add this buildpack to your Scalingo application to install the wkhtmltopdf
and wkhtmltoimage binaries, and the corresponding library libwkhtmltox.
You need to setup your application to use a multi-buildpack environment.
Then, your application need both the wkhtmltopdf buildpack and the one for
the technology you use in your application. Here is an example using the Ruby buildpack:
$ scalingo env-set 'BUILDPACK_URL=https://github.com/Scalingo/multi-buildpack.git'
$ echo 'https://github.com/Scalingo/wkhtmltopdf-buildpack' >> .buildpacks
$ echo 'https://github.com/Scalingo/ruby-buildpack' >> .buildpacks
$ git add .buildpacks
$ git commit -m 'Add multi-buildpack'If you want to use a wkhtmltopdf version other than 0.12.6-1, set
WKHTMLTOPDF_VERSION:
scalingo env-set WKHTMLTOPDF_VERSION="0.12.3"As the distribution method for wkhtmltopdf has changed, you must also use a
specific version of the buildpack. So modify your .buildpacks to reference
the buildpack with a specific tag:
https://github.com/Scalingo/wkhtmltopdf-buildpack#v0.12.3
And commit this file.
If you run into issues when trying to deploy with this buildpack, make sure your
app is running on the stack scalingo-18, scalingo-20 or scalingo-22. You can check this
with:
$ scalingo apps-info