bonsoir ,
j ai crée un projet symfony 3 je fait bundle pfd lorsque je click sur le button pour faire la traduction de html to pdf il fait un erreur
voila mon fichier config.yml
routing.yml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 siphoc_pdf: basepath: "%kernel.root_dir%/../web" binary: "/usr/local/bin/wkhtmltopdf" options: 'lowquality': false 'enable-javascript': true 'debug-javascript': true
controlleur
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 pdf: path: /pdf defaults: { _controller: "CommandeBundle:Commande:pdf" }
voila l eurreur
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 public function pdfAction() { $pdfGenerator = $this->get('siphoc.pdf.generator'); $pdfGenerator->setName('my_pdf.pdf'); return $pdfGenerator->downloadFromView( 'CommandeBundle:commande:pdf.html.twig' ); }
merci de m aider
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 The exit status code '1' says something went wrong: stderr: "Le chemin d'acc�s sp�cifi� est introuvable. " stdout: "" command: /usr/local/bin/wkhtmltopdf --debug-javascript --enable-javascript "C:\Windows\TEMP\knp_snappy5a985275222428.54687645.html" "C:\Windows\TEMP\knp_snappy5a9852752a2196.06287755.pdf".
Partager