Wkhtmltopdf Buildpack

Purpose of this buildpack

This is a buildpack that installs wkhtmltopdf into a container image.

wkhtmltopdf is a command line tools to render HTML into PDF using the Qt WebKit rendering engine.

You may find useful to use such a tool as part of your web application. Hence, we developed a specific buildpack to ease the installation of this tool. Such a buildpack should be use as part of a multi-buildpack.


Please be aware that this software is known to have different rendering depending on the installed version. This buildpack installs a specific version known to work on our infrastructure that might render things differently than your local installation.

Set up this buildpack for your application

We describe in this section the different step to reproduce in order to use this buildpack depending on the technology you use.

You will need to setup your application to use a multibuildpack environment. Then, your application will 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'

You will find a comprehensive list of our buildpacks on this page.

schedule 27 Oct 2016