J’ai installé dompdf V 2.0.1 tout fonctionne sauf l’affichage des images il y a l’erreur Image not found or type unknown.
J’ai recherché et mis en place les solution proposées j’ai toujours l’erreur.
Le chemin de l’image est exacte.
Ci-dessous le scripts (extrait)
Code : Tout sélectionner
echo'
<table>
<tr>
<th class="100p" style="text-align:center;">
'.$adresse_lettre.'
</th>
</tr>
</table>
<table width="100%" border="0" style="margin-top: 10px;">
<tr>
<td class="100p" style="text-align:center;" ><img src="vue_FC_3.jpg" alt="Saint Martin d\'Arenc" width="500px" height="130px" /> </td>
</tr>
</table>
<table>
<tr>
<th class="100p" style="text-align:center;">
<h2> ADHESION </h2>
</th>
</tr>
</table>
';
Code : Tout sélectionner
use Dompdf\Dompdf;
require_once 'dompdf/autoload.inc.php';
ob_start();
include 'pdf_adhesion.php';
$content = ob_get_clean();
$dompdf = new DOMPDF();
$dompdf->load_html($content);
$dompdf->render();
$dompdf->stream("test.pdf", array("Attachment" => true));
Merci pour vos réponse