knp-snappy

KnpSnappyBundle and Symfony 3.4 : images and/or css cause timeout

我与影子孤独终老i 提交于 2020-05-15 09:44:10
问题 I've installed KnpSnappyBundle on an existing Symfony 3.4 project. I've tested the PDF generator with a HTML twig with text only, no images, no css, no js : it works fine. Then I've added (to the twig) an image and a Bootstrap.Css file using absolute URL (i'm working on localhost): the PDF generator displays an ugly error : The process "wkhtmltopdf --lowquality '/tmp/knp_snappy5aeb39ad71e767.56551505.html' '/tmp/knp_snappy5aeb39ad71ebf0.62787578.pdf'" exceeded the timeout of 60 seconds. What

How do I set header and footer in a PDF, from HTML, with knp-snappy-bundle?

≯℡__Kan透↙ 提交于 2020-01-05 07:42:28
问题 Long story short With knp-snappy-bundle I can't generate a header in the PDF, while I can actually generate a footer. Is it a bug, a feature, or I'm doing something wrong? Details 1. Environment I'm testing the knp-snappy-bundle , I've also installed the wkhtmltopdf binary from h4cc . This is part of my composer.json : "h4cc/wkhtmltopdf-amd64": "^0.12.3", "knplabs/knp-snappy-bundle": "^1.5", The resulting binary of wkhtmltopdf says this: $ vendor/bin/wkhtmltopdf-amd64 --version wkhtmltopdf 0

How do I set header and footer in a PDF, from HTML, with knp-snappy-bundle?

只愿长相守 提交于 2020-01-05 07:41:29
问题 Long story short With knp-snappy-bundle I can't generate a header in the PDF, while I can actually generate a footer. Is it a bug, a feature, or I'm doing something wrong? Details 1. Environment I'm testing the knp-snappy-bundle , I've also installed the wkhtmltopdf binary from h4cc . This is part of my composer.json : "h4cc/wkhtmltopdf-amd64": "^0.12.3", "knplabs/knp-snappy-bundle": "^1.5", The resulting binary of wkhtmltopdf says this: $ vendor/bin/wkhtmltopdf-amd64 --version wkhtmltopdf 0

WKHTMLTOPDF (knplabs - snappy) not showing header nor footer page

一笑奈何 提交于 2019-12-11 15:57:30
问题 I'm using wkhtmltopdf to generate my pdf files. I've left the generation alone for some time and for whatever reason it's not generating the header and footer anymore. Things I've tried so far (will update this when more answers come in): Having the doctype , html , head and body tags ion the header and footer Chaning the paths to the header and footer to absolute paths (Even using complete absolute paths from the drive forward C:/xampp... does not work.) It might be worth pointing out that