Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update url of wkhtmltopdf .deb package #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update url of wkhtmltopdf .deb package #9

wants to merge 1 commit into from

Conversation

davidbarre
Copy link

(project change from sourceforce to gna.org)

Related to this issue #5

(project change from sourceforce to gna.org)
@msva
Copy link

msva commented Jun 3, 2017

gna org looks dead as well :-/

@GabLeRoux
Copy link

GabLeRoux commented Apr 20, 2018

Releases are now in github. URL looks something like this:

https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz

Here's what I used on a debian based docker image:

ARG WKHTMLTOPDF_VERSION=0.12.2.1

RUN apt-get update -y \
  && apt-get install -y build-essential xorg libssl-dev libxrender-dev wget gdebi
RUN wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/${WKHTMLTOPDF_VERSION}/wkhtmltox-${WKHTMLTOPDF_VERSION}_linux-jessie-amd64.deb \
  && gdebi --n wkhtmltox-${WKHTMLTOPDF_VERSION}_linux-jessie-amd64.deb \
  && rm -rf /var/lib/apt/lists/*

I looked at latest version (0.12.4) and there seem to be a .tar.xz so something like this would probably work (untested):

ARG WKHTMLTOPDF_VERSION=0.12.4

RUN https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/${WKHTMLTOPDF_VERSION}/wkhtmltox-${WKHTMLTOPDF_VERSION}_linux-generic-amd64.tar.xz \
  && tar xf wkhtmltox-${WKHTMLTOPDF_VERSION}_linux-generic-amd64.tar.xz \
  && ln -s $(pwd)/wkhtmltox/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf \
  && ln -s $(pwd)/wkhtmltox/bin/wkhtmltoimage /usr/local/bin/wkhtmltoimage

✌️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants