wkhtmltopdf-windows icon indicating copy to clipboard operation
wkhtmltopdf-windows copied to clipboard

\knp_snappy5bb098d140e970.93058232.pdf' was not created

Open AbhayLodhi opened this issue 6 years ago • 2 comments

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").

AbhayLodhi avatar Sep 30 '18 09:09 AbhayLodhi

+1 help us

JhowRaul10 avatar Apr 26 '21 19:04 JhowRaul10

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.

lucasferro0 avatar Apr 23 '24 23:04 lucasferro0