Skip to content

Commit

Permalink
The default package wkhtmltopdf provided by debian is built against a…
Browse files Browse the repository at this point in the history
…n 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)
  • Loading branch information
falconray0704 authored Apr 14, 2022
1 parent 1ec6387 commit c89e3da
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,20 @@ RUN set -x; \
libxml2-dev \
fontconfig \
fonts-freefont-ttf \
wkhtmltopdf \
wget \
tar \
curl \
libzip-dev \
unzip \
\
&& docker-php-ext-install -j$(nproc) dom pdo pdo_mysql zip tidy \
&& docker-php-ext-configure ldap \
&& docker-php-ext-install -j$(nproc) ldap \
&& docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd
&& wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_amd64.deb \
&& chmod a+x ./wkhtmltox_0.12.6-1.buster_amd64.deb \
&& apt-get install -y ./wkhtmltox_0.12.6-1.buster_amd64.deb \
&& rm ./wkhtmltox_0.12.6-1.buster_amd64.deb \
&& docker-php-ext-install -j$(nproc) dom pdo pdo_mysql zip tidy \
&& docker-php-ext-configure ldap \
&& docker-php-ext-install -j$(nproc) ldap \
&& docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd

RUN a2enmod rewrite remoteip; \
{ \
Expand Down

0 comments on commit c89e3da

Please sign in to comment.