[eluser]flaky[/eluser]
I'm having this strange problem. When generating the pdf locally the images are displayed in the pdf file, but when I upload it to the public server I only get the html printed on the pdf and not the image. Yes I've checked the image path and everything.
I have searched the forum for similar problems, and there seem to have been some, but those solutions aren't working for me.
Any suggestions?
the view (head only including the image)
Code:
<html>
<head>
<style type="text/css">
body{
font-size: 10px;
}
table{
border: 1px solid;
border-color: #aaa;
}
table th{
border: 1px solid;
border-color: #aaa;
}
table td{
border: 1px solid;
border-color: #aaa;
}
#img{
margin-left: 25px;
margin-top: 10px;
margin-bottom: 20px;
height: 50px;
}
</style>
</head>
<body>
<img src="<?php echo base_url() . 'assets/img/ba-logo-web.jpg'; ?>" id="img" />
the function
Code:
$this->load->plugin('to_pdf');
$this->template->write_view('content', 'details_pdf', $data);
$html = $this->template->render('content');
pdf_create($html, 'filename');