Forums

TCPDF with picture

rmatha 22 Mar, 2018
Hi,
On submit event, i try to create a PDF with a picture on a table.
I've got this code in the TCPDF module :

<div>
<table>
<tbody>
<tr>
<td><img src="http://bordeauxsejours.com/images/PDF/entetePDF.jpg" alt="" width="166" height="845" /></td>
<td>Demande de devis du site BordeauxSejours</td>
</tr>
</tbody>
</table>
</div>

On the Web site, when i enter all the informations and i click on "submit"... i've got this error :
TCPDF ERROR: [Image] Unable to get image: /home/tourdhor/www/bxsj/libraries/cetcpdf/tcpdf/cache/img_50afd968b828ac16ef37a86586538118
If a remove the picture, everything is OK !

I verify the link to the pitcure which seems to be good. So if someone have a idea to include picture in the PDF ?

Thanks

régis
GreyHead 24 Mar, 2018
Hi régis,

Please see the 'Including Images' section in this FAQ

Bob
This topic is locked and no more replies can be posted.