-
Notifications
You must be signed in to change notification settings - Fork 72
PDF with Image #12
Comments
Hi. You need to activate DOMPDF_ENABLE_REMOTE php artisan config:publish thujohn/pdf Add simply this : <img src="'.asset('your-image.jpg').'" alt="" /> |
If download is long maybe you have another problem (server, image...). I tried but had no problem with download time. |
image still not show, in my pdf image not readable or empty ? if i show in my view its work fine.. but in pdf get error like that |
Can you start a new project ?
Route::get('/', function()
{
$html = '<html><body>'
. '<p>Test image</p>'
. '<img src="'.asset('Logo-Laravel.png').'" alt="" />'
. '</body></html>';
return PDF::load($html, 'A4', 'portrait')->show();
}); For me it is instantaneous. |
for me too, works fine 👍 |
Call to undefined function imagecreatefrompng() /srv/1/sysadm/mansur/laravel/l4test/vendor/thujohn/pdf/src/Thujohn/Pdf/dompdf/lib/class.pdf.php $imgtmp = @imagecreatefrompng($file); i get error again |
Is GD enabled ? Else try with another : http://2.bp.blogspot.com/-wqJojh3X3T0/UXn2guDI3jI/AAAAAAAADec/gpAyE6o9Qo8/s1600/laravel-4-framework.jpg |
how to check GD is enable ? |
Hi thujohn, Please help ! |
Hi thujohn, I could not put image in the PDF document, followed all the tutorials I could find but it still generates an error 'file_put_contents ()' |
how to add Image to PDF generated ??
The text was updated successfully, but these errors were encountered: