fkeloks / wkhtmltopdf-buildpack

Scalingo buildpack for WKHTMLTOPDF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wkhtmltopdf Buildpack

This is a buildpack for bundling a compatible wkhtmltopdf binary with your environment.

Versions

  • Buildpack: 0.2
  • wkhtmltopdf: 0.12.3 by default

Usage

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.3, set WKHTMLTOPDF_VERSION:

scalingo env-set WKHTMLTOPDF_VERSION="0.12.4"

Troubleshooting

If you run into issues when trying to deploy with this buildpack, make sure your app is running on the stack scalingo or scalingo-18. You can check this with:

$ scalingo apps-info

About

Scalingo buildpack for WKHTMLTOPDF

License:MIT License


Languages

Language:Shell 100.0%