wkhtmltopdf-windows
wkhtmltopdf-windows copied to clipboard
\knp_snappy5bb098d140e970.93058232.pdf' was not created
i am facing this issue need help please Thnx.
inside composer file "barryvdh/laravel-dompdf": "^0.8.3", "barryvdh/laravel-snappy": "^0.4.3", "h4cc/wkhtmltoimage-amd64": "^0.12.4", "h4cc/wkhtmltopdf-amd64": "^0.12.4", "wemersonjanuario/wkhtmltopdf-windows": "0.12.2.3"
snappy config file return array(
'pdf' => array( 'enabled' => true, 'binary' => base_path('vendor\wemersonjanuario\wkhtmltopdf-windows\bin\64bit\wkhtmltopdf'), 'timeout' => false, 'options' => array(), 'env' => array(), ), 'image' => array( 'enabled' => true, 'binary' => 'vendor\h4cc\wkhtmltoimage-amd64', 'timeout' => false, 'options' => array(), 'env' => array(), ), );
Print Controller file
$pdf = PDF::loadView('results',['students'=>$students,'school' => $school,'subject'=>$subjects]); return $pdf->download('result.pdf');
RuntimeException The file 'C:\Users\Abhay\AppData\Local\Temp\knp_snappy5bb098d140e970.93058232.pdf' was not created (command: D:\Projects\ResultAssessment\vendor\wemersonjanuario\wkhtmltopdf-windows\bin\64bit\wkhtmltopdf --lowquality "C:\Users\Abhay\AppData\Local\Temp\knp_snappy5bb098d13f12f7.97723818.html" "C:\Users\Abhay\AppData\Local\Temp\knp_snappy5bb098d140e970.93058232.pdf").
+1 help us
To solve the problem, I needed to download the bin file from this link: https://wkhtmltopdf.org/downloads.html
The bin file installed by composer (wemersonjanuario/wkhtmltopdf-windows) for windows did not work.