Category : knp-snappy

I can’t seem to get external images to work, and local images only work if I use the full path in the docker php container. Is there any way around having to input the path manually? Controller return new Response($this->snappy->getOutputFromHtml($html, [ ‘page-width’ => 297, ‘page-height’ => 210, ‘images’ => true, ‘lowquality’ => false, ‘enable-external-links’ => ..

Read more

So, I am using wkhtmltopdf or knp/snappy-bundle for generating pdf files in my Symfony project. I am using docker-compose build command to install it by adding installation to my dockerfile. It throws an error as: dependency problems prevent configuration of wkhtmltox: wkhtmltox depends on fontconfig; however: Package fontconfig is not installed. wkhtmltox depends on libpng12-0; ..

Read more