Bonjour,
Voila je rencontre un petit problème avec mon code.
j'ai changer l'engine vers wkhtmltopdf j'ai installé la version windows32bit quand je veux générer le pdf cet erreur est affiché ```
Fatal error: [Cake\Core\Exception\Exception] wkhtmltopdf binary is not found or not executable: /usr/bin/wkhtmltopdf #0
Bootsrap.php
$config=[around 'binary' => 'C:/ProgramFiles(x86)/wkhtmltopdf/bin',around 'engine' => 'CakePdf.WkHtmlToPdf',aroundaround 'options' => [around 'print-media-type' => true,around 'outline' => true,around 'dpi' => 96],around 'crypto'=>'CakePdf.Pdftk',around 'margin' => [around 'bottom' => 15,around 'left' => 50,around 'right' => 30,around 'top' => 45around ],around 'pageSize'=>'A4',around 'orientation' => 'portrait',around 'download' => true,around 'encoding' => 'UTF-8'aroundaround];aroundConfigure::write('CakePdf', $config);around
et dans le plugin cakepdf j'ai changé la variable binary vers
protected $_binary ='C:/ProgramFiles(x86)/wkhtmltopdf/bin';
aussi j'ai essayé avec les tild ```
$config=[around 'binary' => 'C:/Program~Files~(x86)/wkhtmltopdf/bin',around 'engine' => 'CakePdf.WkHtmlToPdf',
mais rien toujours cet erreur s'affiche
Fatal error: [Cake\Core\Exception\Exception] wkhtmltopdf binary is not found or not executable: /usr/bin/wkhtmltopdf #0 C:\xampp\htdocs\FOCompetence\vendor\friendsofcake\cakepdf\src\Pdf\Engine\WkHtmlToPdfEngine.php(36): CakePdf\Pdf\Engine\WkHtmlToPdfEngine->_getCommand() #1 C:\xampp\htdocs\FOCompetence\vendor\friendsofcake\cakepdf\src\Pdf\CakePdf.php(282): CakePdf\Pdf\Engine\WkHtmlToPdfEngine->output() #2 C:\xampp\htdocs\FOCompetence\vendor\friendsofcake\cakepdf\src\View\PdfView.php(117): CakePdf\Pdf\CakePdf->output('...') #3 C:\xampp\htdocs\FOCompetence\vendor\cakephp\cakephp\src\Error\ExceptionRenderer.php(358): CakePdf\View\PdfView->render('error500', 'error') #4 C:\xampp\htdocs\FOCompetence\vendor\cakephp\cakephp\src\Error\ExceptionRenderer.php(327): Cake\Error\ExceptionRenderer->_outputMessageSafe('error500') #5 C:\xampp\htdocs\FOCompetence\vendor\cakephp\cakephp\src\Error\ExceptionRenderer.php(329): Cake\Error\ExceptionRenderer->_outputMessage('error500') #6 C:\xampp\htdocs\FOCompetence\vendor\cakephp in C:\xampp\htdocs\FOCompetence\vendor\cakephp\cakephp\src\Error\ErrorHandler.php on line 156