Postingan lainnya
Memunculkan image di html2pdf
Halo teman2, saya mau tanya. Saya menggunakan tag berikut untuk memunculkan img di html2pdf
echo "<td style='width: 6%;'><img src='../files/tsr/".$data['file1_img']."'></td>";
dan saya mendapatkan error sebagai berikut: Fatal error: Uncaught <span style="color: #AA0000; font-weight: bold;">ERROR n°6</span><br>File : C:\xampp\htdocs\QC\vendor\html2pdf\html2pdf.class.php<br>Line : 1319<br><br>Impossible to load the image <b>files/tsr/Foto USB SoundCard.jpeg</b> thrown in C:\xampp\htdocs\QC\vendor\html2pdf\html2pdf.class.php on line 1319
ada yang tau solusinya ?
2 Jawaban:
load gambarnya di beginikan
<pre> http://localhost/foldergambar/ceritanya_ini_gambarnya.jpg </pre> intinya coba make url
tetap ga bisa gan, errornya ganti jadi gini
<pre> Fatal error: Uncaught <span style="color: #AA0000; font-weight: bold;">ERROR n°6</span><br>File : C:\xampp\htdocs\QC\pages\vendor\html2pdf\html2pdf.class.php<br>Line : 1319<br><br>Impossible to load the image <b>http://localhost/QC/pages/files/tsr/WhatsApp Image 2019-07-05 at 12.10.22.jpeg</b> thrown in C:\xampp\htdocs\QC\pages\vendor\html2pdf\html2pdf.class.php on line 1319 </pre>