Category: wkhtmltopdf

Exit with code 1 due to network error: ConnectionRefusedError when generating PDF file from symfony running in Docker

I am trying to generate a pdf from a twig page by using snappy bundle with wkhtmltopdf,: $pageUrl = $command->getRouter()->generate(‘testDevis’,array(‘idDevis’=>$command->getIdDevis()),UrlGeneratorInterface::ABSOLUTE_URL); return new PdfResponse( $command->getPdfService()->getOutput($pageUrl), $nomDevis ); where $pageUrl = http://127.0.0.1:9999/test/1.I believe the problem came from Docker, where I have configured…

wkhtmltopdf – ubuntu dependency problems while installing

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…