Skip to content

Commit c89e3da

Browse files
The default package wkhtmltopdf provided by debian is built against an unpatched version of QT, so that it does not support export index to PDF with default --outline option. Use the wkhtmltopdf official release package on github to fix it. (#310)
1 parent 1ec6387 commit c89e3da

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

Dockerfile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,20 @@ RUN set -x; \
2222
libxml2-dev \
2323
fontconfig \
2424
fonts-freefont-ttf \
25-
wkhtmltopdf \
25+
wget \
2626
tar \
2727
curl \
2828
libzip-dev \
2929
unzip \
30-
\
31-
&& docker-php-ext-install -j$(nproc) dom pdo pdo_mysql zip tidy \
32-
&& docker-php-ext-configure ldap \
33-
&& docker-php-ext-install -j$(nproc) ldap \
34-
&& docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ \
35-
&& docker-php-ext-install -j$(nproc) gd
30+
&& wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_amd64.deb \
31+
&& chmod a+x ./wkhtmltox_0.12.6-1.buster_amd64.deb \
32+
&& apt-get install -y ./wkhtmltox_0.12.6-1.buster_amd64.deb \
33+
&& rm ./wkhtmltox_0.12.6-1.buster_amd64.deb \
34+
&& docker-php-ext-install -j$(nproc) dom pdo pdo_mysql zip tidy \
35+
&& docker-php-ext-configure ldap \
36+
&& docker-php-ext-install -j$(nproc) ldap \
37+
&& docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ \
38+
&& docker-php-ext-install -j$(nproc) gd
3639

3740
RUN a2enmod rewrite remoteip; \
3841
{ \

0 commit comments

Comments
 (0)