I want to load an image to PDF from generated image.
I had set isRemoteEnabled to true and generated QRCode working fine
Here is my code.
$this->load->library(array('pdf', 'ciqrcode'));
$data = array('qrlink' => base_url('generateQR?text=123'));
$this->pdf->set_paper('folio');
$this->pdf->loadHtml($this->load->view('pdfoutput', $data, true));
$this->pdf->set_base_path(base_url());
$this->pdf->render();
$this->pdf->stream('QR-PDF', array("Attachment" => false));
And here is my view
<img src="<?= $qrlink ?>" alt="QRcode" width="150px">
But the output say Image not found or type unknown. So what should I do?
Thanks in advance.
Cheers.