Open terbooter opened 6 years ago
I'm having a similar issue. Did you ever find a solution for this?
@mathiscode I switched to https://wkhtmltopdf.org/ It has some limitations (Can not use modern JS and CSS) But in generals works good.
Here is the part of Dockerfile I use
RUN mkdir -p /wk_dir
WORKDIR /wk_dir
RUN apt-get install -y libfontconfig1 libxrender1 fontconfig libjpeg-turbo8 xfonts-75dpi xfonts-base
ADD docker/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb .
RUN dpkg -i ./libpng12-0_1.2.54-1ubuntu1.1_amd64.deb
ADD docker/wkhtmltox_0.12.5-1.trusty_amd64.deb .
RUN dpkg -i ./wkhtmltox_0.12.5-1.trusty_amd64.deb
RUN apt-get install -f
@terbooter Thanks! 😄
I have a problem generating PDF from HTML with following content
In browser I see image. In generated PDF white space. How can I debug or get logs of phantomjs?