Merci de ta réponse,
Comment mettre en place la version statique de wkhtmltopdf ?
Pour mon installation actuel sous ubuntu, j'ai fait un
1 2
| sudo apt-get install wkhtmltopdf
sudo apt-get install xvfb |
J'ai donc un fichier /usr/bin/wkhtmltopdf ayant une taille de 233 512 o (229ko) .
Ensuite j'ai créé un fichier /usr/bin/wkhtmltopdf.sh ayant comme contenu
xvfb-run -a -s "-screen 0 640x480x16" wkhtmltopdf $*
Et enfin j'ai fait un lien
#ln -s /usr/bin/wkhtmltopdf.sh /home/Scripts/wkhtmltopdf
Que j'utilise dans la conf :
knp_snappy:
pdf:
enabled: true
binary: /home/scripts/wkhtmltopdf
options: []
Intuitivement, pour passer en version 0.11, je m'attendais à trouver un fichier binaire "wkhtmltopdf" que j'aurais remplacé mais il n'existe pas dans la version 0.11.
Comment as-tu installer cette version ?
Partager