Skip to content

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

@AbhayLodhi

Description

@AbhayLodhi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions