Welcome Guest, Not a member yet? Register   Sign In
domPDF Images
#1

[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="&lt;?php echo base_url() . 'assets/img/ba-logo-web.jpg'; ?&gt;" 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');


Messages In This Thread
domPDF Images - by El Forum - 04-20-2010, 01:54 AM
domPDF Images - by El Forum - 09-07-2010, 12:19 PM
domPDF Images - by El Forum - 09-07-2010, 02:55 PM
domPDF Images - by El Forum - 09-13-2010, 03:48 PM
domPDF Images - by El Forum - 09-13-2010, 03:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB