We are faced with this, which began in April on a working server. Everything was fine with our application until the client informed that PDF files no longer display images.
Our PDF file is created using HTML rendering. When HTML rendering is displayed, the image is displayed correctly. Also, the image is displayed correctly if the image URL specified in mPDF is copied and pasted into a new tab.
However ... If you load an image from DOMFERENT DOMAIN, then the image will display correctly. loading an image through an absolute path, relative path or url path result in this error:
MPDF error: IMAGE error ( http://www.aibsonline.co.uk/logo.gif ): Could not find image file
But, since you will see that the logo URL works when pasted. File permissions were tested (which is why in the root directory) standard before 777. The server is a Linux server in both cases, which we have seen so far.
HTML code that displays the logo:
<div id="logo_wrapper" class="left">
<img width="107" height="76" src="<?php echo base_url('logo.gif'); ?>" />
</div>
With a real loss with this, it begins to affect more and more customers.
Any help gratefully received.
UPDATE
The image displays if the rendering code and the image are in the same directory, and we DO NOT use an absolute path, for example.
<img width="107" height="76" src="logo.gif" />
source
share