Я хочу добавить изображение в свой PDF-файл, созданный snappy, но ничего не появляется
В моей ветке:
Я сохраняю имя файла в своей базе данных, Survey.event.image содержит имя изображения
<div style="margin-top: 26px; width: 200px">
<img src="{{ asset('uploads/imagesFile/'~survey.event.image) }}" id="imgEvent">
</div>
Я включил изображения =>true
return new Response(
$this->get('knp_snappy.pdf')->getOutputFromHtml($html,array(
'default-header'=>null,
'encoding' => 'utf-8',
'images' => true,
'enable-javascript' => true,
'margin-right' => 7,
'margin-left' =>7,
'javascript-delay' => 5000
)),
200,
array(
'Content-Type' => 'application/pdf',
'Content-Disposition' => 'attachment; filename="file1.pdf"'
)
);