Skip to content

Commit

Permalink
note that wkhtmltopdf has a package in Alpine (yay!)
Browse files Browse the repository at this point in the history
  • Loading branch information
gutschilla committed Mar 5, 2020
1 parent e08d83f commit d25cdb1
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ encryption) for use in Elixir projects.
[![CircleCI](https://circleci.com/gh/gutschilla/elixir-pdf-generator.svg?style=svg)](https://circleci.com/gh/gutschilla/elixir-pdf-generator)

- 0.6.1
- documentation about keeping `xvfb` buffer, thanks for your feedback, [kiere](https://github.com/gutschilla/elixir-pdf-generator/issues?q=is%3Aissue+is%3Aopen+author%3Akiere)
- documentation about keeping `xvfb` buffer, thanks for your feedback,
[kiere](https://github.com/gutschilla/elixir-pdf-generator/issues?q=is%3Aissue+is%3Aopen+author%3Akiere)
-
- 0.6.0
- introducting `make` as build tool (optional) for chromium binaries
Expand Down Expand Up @@ -162,19 +163,24 @@ Or, run `cd priv && npm install`

## wkhtmltopdf

2. Download wkhtmltopdf and place it in your $PATH. Current binaries can be
found here: http://wkhtmltopdf.org/downloads.html

For the impatient (Ubuntu 18.04 Bionic Beaver):
- **Alpine** (tested on 3.11): `apk add wkhtmltodf` - gone are the days of
manually fumbling around with wkhtmltopdf and its musl preference over glibc.

- **Ubuntu 19.10**: `apt-get install wkhtmltopdf` and you'll have 0.12.5 on $PATH

- **Ubuntu 18.04**: Download wkhtmltopdf and place it in your $PATH. Current
binaries can be found here: http://wkhtmltopdf.org/downloads.html

For the impatient (Ubuntu 18.04 Bionic Beaver):

```
apt-get -y install xfonts-base xfonts-75dpi \
```
apt-get -y install xfonts-base xfonts-75dpi \
&& wget https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb \
&& dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb
```
```

For other distributions, refer to http://wkhtmltopdf.org/downloads.html – For
example, replace `bionic` with `xenial` if you're on Ubuntu 16.04.
For other distributions, refer to http://wkhtmltopdf.org/downloads.html – For
example, replace `bionic` with `xenial` if you're on Ubuntu 16.04.

## optional dependencies

Expand Down

0 comments on commit d25cdb1

Please sign in to comment.