Hello!
Page option --zoom is ignored in command: wkhtmltopdf -T 5 --zoom 1.2 --footer-spacing 1 --margin-bottom 8 --header-spacing 2 -O Landscape -s A4 ...., it was scale 1.0 with anything.
My Dockerfile:
FROM surnet/alpine-wkhtmltopdf:3.20.3-0.12.6-full AS wkhtmltopdf
FROM php:8.2-fpm-alpine
RUN apk add --no-cache \
xvfb \
libstdc++ \
libx11 \
libxrender \
libxext \
libssl3 \
ca-certificates \
fontconfig \
freetype \
ttf-dejavu \
ttf-droid \
ttf-freefont \
ttf-liberation \
curl \
git \
unzip \
zip \
bash \
libzip-dev \
libpng-dev \
libjpeg-turbo-dev \
freetype-dev \
mariadb-connector-c-dev \
oniguruma-dev \
icu-dev && \
docker-php-ext-configure gd --with-freetype --with-jpeg && \
docker-php-ext-install \
pdo_mysql \
mbstring \
zip \
gd && \
docker-php-ext-configure intl && \
docker-php-ext-install intl && \
docker-php-ext-enable intl
COPY --from=wkhtmltopdf /bin/wkhtmltopdf /bin/wkhtmltopdf
COPY --from=wkhtmltopdf /bin/wkhtmltoimage /bin/wkhtmltoimage
COPY --from=wkhtmltopdf /lib/libwkhtmltox* /lib/
Hello!
Page option --zoom is ignored in command:
wkhtmltopdf -T 5 --zoom 1.2 --footer-spacing 1 --margin-bottom 8 --header-spacing 2 -O Landscape -s A4 ...., it was scale 1.0 with anything.My Dockerfile: