wemersonjanuario / wkhtmltopdf-windows

wkhtmltopdf - Convert html to pdf using webkit (qtwebkit). Windows binaries
http://wkhtmltopdf.org
GNU Lesser General Public License v3.0
46 stars 11 forks source link

\knp_snappy5bb098d140e970.93058232.pdf' was not created #4

Open AbhayLodhi opened 6 years ago

AbhayLodhi commented 6 years ago

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

JhowRaul10 commented 3 years ago

+1 help us

lucasferro0 commented 6 months ago

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.